MCPcopy Create free account
hub / github.com/approvals/ApprovalTests.cpp / LibraryBook

Method LibraryBook

tests/DocTest_Tests/docs/Tutorial.cpp:27–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25{
26public:
27 LibraryBook(std::string title_,
28 std::string author_,
29 int available_copies_,
30 std::string language_,
31 int pages_,
32 std::string isbn_)
33 : title(title_)
34 , author(author_)
35 , available_copies(available_copies_)
36 , language(language_)
37 , pages(pages_)
38 , isbn(isbn_)
39 {
40 }
41 // Data public for simplicity of test demo case.
42 // In production code, we would have accessors instead.
43 std::string title;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected