MCPcopy Create free account
hub / github.com/pybind/pybind11 / TestFactory2

Method TestFactory2

tests/test_factory_constructors.cpp:37–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35class TestFactory2 {
36 friend class TestFactoryHelper;
37 TestFactory2() : value("(empty2)") { print_default_created(this); }
38 explicit TestFactory2(int v) : value(std::to_string(v)) { print_created(this, value); }
39 explicit TestFactory2(std::string v) : value(std::move(v)) { print_created(this, value); }
40

Callers 3

test_init_factory_basicFunction · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 4

print_default_createdFunction · 0.85
print_createdFunction · 0.85
moveFunction · 0.85
print_move_createdFunction · 0.85

Tested by

no test coverage detected