1#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_TEST_BACKEND_METADATA_H_
2#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_TEST_BACKEND_METADATA_H_
10#include <inja/inja.hpp>
12#include "lib/cstring.h"
14#include "backends/p4tools/modules/testgen/lib/test_spec.h"
15#include "backends/p4tools/modules/testgen/targets/bmv2/test_backend/common.h"
26 float currentCoverage)
override;
30 std::ofstream metadataFile;
34 void emitPreamble(
const std::string &preamble);
41 void emitTestcase(
const TestSpec *testSpec,
cstring selectedBranches,
size_t testId,
42 const std::string &testCase,
float currentCoverage);
47 static void computeTraceData(
const TestSpec *testSpec, inja::json &dataJson);
50 static std::string getTestCaseTemplate();