MCPcopy Create free account
hub / github.com/OpenCppCoverage/OpenCppCoverage / AutoClose

Method AutoClose

TestHelper/AutoClose.hpp:27–33  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

25 public:
26 //---------------------------------------------------------------------
27 AutoClose(Value value, Value invalidValue, CloseAction closeAction)
28 : value_{ value }
29 , closeAction_{ closeAction }
30 {
31 if (value_ == invalidValue)
32 throw std::runtime_error("The value is invalid");
33 }
34
35 //---------------------------------------------------------------------
36 ~AutoClose()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected