Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boutproject/BOUT-dev
/ ~OutputTest
Method
~OutputTest
tests/unit/sys/test_output.cxx:17–22 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
}
16
17
virtual ~OutputTest() {
18
// Clear buffer
19
buffer.str(
""
);
20
// When done redirect cout to its old self
21
std::cout.rdbuf(sbuf);
22
}
23
24
// Write cout to buffer instead of stdout
25
std::stringstream buffer;
Callers
nothing calls this directly
Calls
1
str
Method · 0.45
Tested by
no test coverage detected