MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / TEST

Function TEST

test/span/span.cpp:29–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27static_assert(!std::is_default_constructible_v<cxx20::span<int, 1>>);
28
29TEST(SpanTest, Constructors) {
30 cxx20::span<int> S;
31 EXPECT_EQ(S.size(), 0U);
32 EXPECT_EQ(S.data(), nullptr);
33
34 cxx20::span<const int> CS;
35 EXPECT_EQ(CS.size(), 0U);
36 EXPECT_EQ(CS.data(), nullptr);
37}
38
39TEST(SpanTest, ConstructorsWithExtent) {
40 cxx20::span<int, 0> S;

Callers

nothing calls this directly

Calls 15

swapFunction · 0.85
as_bytesFunction · 0.85
as_writable_bytesFunction · 0.85
firstMethod · 0.80
lastMethod · 0.80
subspanMethod · 0.80
rbeginMethod · 0.80
rendMethod · 0.80
frontMethod · 0.80
backMethod · 0.80
size_bytesMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected