MCPcopy Create free account
hub / github.com/Kitware/CMake / TEST

Function TEST

Utilities/cmcppdap/src/optional_test.cpp:22–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include <string>
21
22TEST(Optional, EmptyConstruct) {
23 dap::optional<std::string> opt;
24 ASSERT_FALSE(opt);
25 ASSERT_FALSE(opt.has_value());
26}
27
28TEST(Optional, ValueConstruct) {
29 dap::optional<int> opt(10);

Callers

nothing calls this directly

Calls 3

moveFunction · 0.85
has_valueMethod · 0.80
valueMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…