Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/catchorg/Catch2
/ Fixture
Method
Fixture
tests/SelfTest/UsageTests/BDD.tests.cpp:19–19 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
17
// a trivial fixture example to support SCENARIO_METHOD tests
18
struct Fixture {
19
Fixture(): d_counter( 0 ) {}
20
21
int counter() { return d_counter++; }
22
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected