MCPcopy Create free account
hub / github.com/LadybirdBrowser/ladybird / TEST_CASE

Function TEST_CASE

Tests/AK/TestStringView.cpp:12–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <AK/ByteString.h>
11#include <AK/Vector.h>
12
13TEST_CASE(construct_empty)
14{
15 EXPECT(StringView().is_empty());
16 EXPECT_EQ(StringView().characters_without_null_termination(), "");
17 EXPECT_EQ(StringView().length(), 0u);
18}
19
20TEST_CASE(view_literal)

Callers

nothing calls this directly

Calls 15

do_testFunction · 0.85
hashFunction · 0.85
count_linesMethod · 0.80
find_lastMethod · 0.80
find_any_ofMethod · 0.80
split_view_ifMethod · 0.80
StringViewClass · 0.50
ByteStringClass · 0.50
VectorClass · 0.50
is_emptyMethod · 0.45
lengthMethod · 0.45
has_valueMethod · 0.45

Tested by

no test coverage detected