MCPcopy Create free account
hub / github.com/DigitalInBlue/Celero / StdFileFixture

Class StdFileFixture

experiments/DemoFileWrite/DemoFileWrite.cpp:44–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42};
43
44class StdFileFixture : public BaseFixture
45{
46public:
47 void setUp(const celero::TestFixture::ExperimentValue* const x) override
48 {
49 BaseFixture::setUp(x);
50
51 #ifdef WIN32
52 fopen_s(&this->file , "FileWrite.out", "wb");
53 #else
54 this->file = fopen("FileWrite.out", "wb");
55 #endif
56 }
57
58 void tearDown() override
59 {
60 fclose(this->file);
61 BaseFixture::tearDown();
62 }
63
64 FILE* file;
65};
66
67BASELINE_F(FileWrite, fwrite, StdFileFixture, 30, 5000)
68{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected