MCPcopy Create free account
hub / github.com/fmtlib/fmt / mock_buffer

Method mock_buffer

test/base-test.cc:143–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 }
142
143 mock_buffer(T* data = nullptr, size_t buf_capacity = 0)
144 : fmt::detail::buffer<T>(grow) {
145 this->set(data, buf_capacity);
146 ON_CALL(*this, do_grow(_)).WillByDefault(Invoke([](size_t capacity) {
147 return capacity;
148 }));
149 }
150};
151
152TEST(buffer_test, ctor) {

Callers

nothing calls this directly

Calls 2

InvokeFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected