FactDev  0.1
test_mustache.h
1 /*
2  Copyright 2012, Robert Knight
3 
4  Redistribution and use in source and binary forms, with or without modification,
5  are permitted provided that the following conditions are met:
6 
7  Redistributions of source code must retain the above copyright notice,
8  this list of conditions and the following disclaimer.
9 
10  Redistributions in binary form must reproduce the above copyright notice,
11  this list of conditions and the following disclaimer in the documentation
12  and/or other materials provided with the distribution.
13 */
14 
15 #pragma once
16 
17 #include "libs/qt-mustache/src/mustache.h"
18 #include "QTestRunner/testrunner.h"
19 
20 #include <QtTest/QtTest>
21 
22 class TestMustache : public QObject
23 {
24  Q_OBJECT
25 
26 private Q_SLOTS:
27  void testContextLookup();
28  void testErrors();
29  void testPartials();
30  void testSections();
31  void testSetDelimiters();
32  void testValues();
33  void testEscaping();
34  void testEval();
35  void testHelpers();
36  void testIncompleteTag();
37  void testIncompleteSection();
38  void testLambda();
39 };
40 
41 DECLARE_TEST(TestMustache)
42 
Definition: test_mustache.h:21