MCPcopy Create free account
hub / github.com/Snapchat/Valdi / TEST

Function TEST

valdi/test/runtime/Result_tests.cpp:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13namespace ValdiTest {
14
15TEST(Result, canBeEmpty) {
16 Result<int> result;
17 ASSERT_TRUE(result.empty());
18 ASSERT_FALSE(result.success());
19 ASSERT_FALSE(result.failure());
20}
21
22TEST(Result, canHoldValue) {
23 Result<int> result = 42;

Callers

nothing calls this directly

Calls 8

use_countMethod · 0.80
valueMethod · 0.65
toStringMethod · 0.65
errorMethod · 0.65
ErrorInterface · 0.50
emptyMethod · 0.45
successMethod · 0.45
failureMethod · 0.45

Tested by

no test coverage detected