| 32 | }; |
| 33 | |
| 34 | TEST_F(LexiconAnnotationTest, ParseCommentLines) { |
| 35 | FILE* fp = fopen(testFileName.c_str(), "w"); |
| 36 | fprintf(fp, "# This is a header comment\n"); |
| 37 | fprintf(fp, "# Line 2 of header\n"); |
| 38 | fprintf(fp, "\n"); |
| 39 | fprintf(fp, "A\tB\n"); |
| 40 | fprintf(fp, "C\tD\n"); |
| 41 | fclose(fp); |
| 42 | |
| 43 | FILE* readFp = fopen(testFileName.c_str(), "r"); |
| 44 | const TextDictPtr& dict = TextDict::NewFromFile(readFp); |
| 45 | fclose(readFp); |
| 46 | EXPECT_EQ(dict->GetLexicon()->Length(), 2); |
| 47 | } |
| 48 | |
| 49 | TEST_F(LexiconAnnotationTest, ParseAttachedComment) { |
| 50 | FILE* fp = fopen(testFileName.c_str(), "w"); |
nothing calls this directly
no test coverage detected