test/harness/testcaseparser.h
author ali <ali@juiblex.co.uk>
Wed Jan 25 19:33:43 2012 +0000 (2012-01-25)
changeset 2 cbd63f7ba40f
child 5 f600b0d1fc5d
permissions -rw-r--r--
Don't test that gutcheck ignores paragraphs with only short lines
ali@0
     1
#ifndef TESTCASE_PARSER_H
ali@0
     2
#define TESTCASE_PARSER_H
ali@0
     3
ali@0
     4
#include <gclib/gclib.h>
ali@0
     5
ali@0
     6
typedef struct {
ali@0
     7
    char *filename;
ali@0
     8
    char *contents;
ali@0
     9
    String *flag;
ali@0
    10
    size_t pos;
ali@0
    11
    char *tag;
ali@0
    12
    char *tag_text;
ali@0
    13
} TestcaseParser;
ali@0
    14
ali@0
    15
const char *testcase_parser_get_flag(TestcaseParser *parser);
ali@0
    16
boolean testcase_parser_get_next_tag(TestcaseParser *parser,const char **tag,
ali@0
    17
  const char **text);
ali@0
    18
boolean testcase_parser_at_eof(TestcaseParser *parser);
ali@0
    19
TestcaseParser *testcase_parser_new_from_file(const char *filename);
ali@0
    20
void testcase_parser_free(TestcaseParser *parser);
ali@0
    21
ali@0
    22
#endif	/* TESTCASE_PARSER_H */