P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::Test::TofinoPipeTestCase Struct Reference

Static Public Member Functions

static std::optional< TofinoPipeTestCasecreate (const std::string &source)
 Create a test case that requires extract_maupipe() to run.
 
static std::optional< TofinoPipeTestCasecreateWithThreadLocalInstances (const std::string &source)
 

Public Attributes

const IR::P4Program * frontendProgram
 The output of the frontend.
 
const IR::BFN::Pipe * pipe
 The output of extract_maupipe().
 

Member Function Documentation

◆ createWithThreadLocalInstances()

std::optional< TofinoPipeTestCase > P4::Test::TofinoPipeTestCase::createWithThreadLocalInstances ( const std::string & source)
static

Create a test case that requires extract_maupipe() to run, and apply CreateThreadLocalInstances.