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

Method TestFactory1

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

Source from the content-addressed store, hash-verified

20class TestFactory1 {
21 friend class TestFactoryHelper;
22 TestFactory1() : value("(empty)") { print_default_created(this); }
23 explicit TestFactory1(int v) : value(std::to_string(v)) { print_created(this, value); }
24 explicit TestFactory1(std::string v) : value(std::move(v)) { print_created(this, value); }
25

Callers 2

test_init_factory_basicFunction · 0.80

Calls 3

print_default_createdFunction · 0.85
print_createdFunction · 0.85
moveFunction · 0.85

Tested by

no test coverage detected