MCPcopy Create free account
hub / github.com/dfranx/SHADERed / TEST

Function TEST

libs/cppdap/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 2

has_valueMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected