[r1]: trunk / Cm / Cm.Test / UnitTestFile.hpp  Maximize  Restore  History

Download this file

38 lines (30 with data), 1.1 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef UnitTestFile_hpp_23220
#define UnitTestFile_hpp_23220
#include <Soul.Parsing/Grammar.hpp>
#include <Soul.Parsing/Keyword.hpp>
#include <Cm.Test/UnitTest.hpp>
namespace Cm { namespace Test {
using Soul::Parsing::GrammarPtr;
using Soul::Parsing::ParsingDomainPtr;
using Soul::Parsing::String;
using Soul::Parsing::KeywordRule;
class UnitTestFile;
typedef boost::shared_ptr<UnitTestFile> UnitTestFileGrammarPtr;
class UnitTestFile : public Soul::Parsing::Grammar
{
public:
static UnitTestFileGrammarPtr Create();
static UnitTestFileGrammarPtr Create(const ParsingDomainPtr& parsingDomain);
void Parse(const String& content, int fileIndex, const String& fileName, std::vector<UnitTest>* tests);
private:
UnitTestFile(const ParsingDomainPtr& parsingDomain_);
virtual void CreateRules();
virtual void GetReferencedGrammars();
class UnitTestFileRuleParser;
class UnitTestRuleParser;
class FileNameRuleParser;
class ErrorCodeRuleParser;
class ErrorLineNumberRuleParser;
};
} } // Cm.Test
#endif // UnitTestFile_hpp_23220

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks