7#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_EBPF_BACKEND_STF_STF_H_
8#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_EBPF_BACKEND_STF_STF_H_
14#include <inja/inja.hpp>
16#include "lib/cstring.h"
18#include "backends/p4tools/modules/testgen/lib/test_framework.h"
19#include "backends/p4tools/modules/testgen/lib/test_spec.h"
21namespace P4::P4Tools::P4Testgen::EBPF {
26 ~STF()
override =
default;
27 STF(
const STF &) =
delete;
29 STF &operator=(
const STF &) =
delete;
30 STF &operator=(STF &&) =
delete;
36 float currentCoverage)
override;
44 void emitTestcase(
const TestSpec *testSpec,
cstring selectedBranches,
size_t testId,
45 const std::string &testCase,
float currentCoverage);
48 static std::string getTestCaseTemplate();
51 static inja::json getControlPlane(
const TestSpec *testSpec);
54 static inja::json getSend(
const TestSpec *testSpec);
57 static inja::json getVerify(
const TestSpec *testSpec);
60 static inja::json getControlPlaneForTable(
const TableMatchMap &matches,
61 const std::vector<ActionArg> &args);