Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
TEST(Optional, EmptyConstruct) {
23
dap::optional<std::string> opt;
24
ASSERT_FALSE(opt);
25
ASSERT_FALSE(opt.has_value());
26
}
27
28
TEST(Optional, ValueConstruct) {
29
dap::optional<int> opt(10);
Callers
nothing calls this directly
Calls
3
move
Function · 0.85
has_value
Method · 0.80
value
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…