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

Method BrokenMatrix

tests/test_buffers.cpp:291–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289 class BrokenMatrix : public Matrix {
290 public:
291 BrokenMatrix(py::ssize_t rows, py::ssize_t cols) : Matrix(rows, cols) {}
292 void throw_runtime_error() { throw std::runtime_error("See PR #5324 for context."); }
293 };
294 py::class_<BrokenMatrix>(m, "BrokenMatrix", py::buffer_protocol())

Callers 1

test_buffer_exceptionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected