MCPcopy Create free account
hub / github.com/cselab/aphros / Test

Function Test

src/test/parser/codeblocks.cpp:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include "parse/codeblocks.h"
11
12void Test() {
13 std::cout << "\n" << __func__ << std::endl;
14
15 auto bb = ParseCodeBlocks(std::cin);
16
17 size_t i = 0;
18 for (auto b : bb) {
19 std::cout << "i=" << i << std::endl;
20 std::cout << "name='" << b.name << "'" << std::endl;
21 std::cout << "content='" << b.content << "'" << std::endl;
22 std::cout << std::endl;
23 ++i;
24 }
25}
26
27int main() {
28 Test();

Callers 1

mainFunction · 0.70

Calls 1

ParseCodeBlocksFunction · 0.85

Tested by

no test coverage detected