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

Function TEST

test/common/hashTest.cpp:23–27  ·  view source on GitHub ↗

Determinism: same input always produces same output within a process.

Source from the content-addressed store, hash-verified

21
22// Determinism: same input always produces same output within a process.
23TEST(HashTest, Deterministic) {
24 const auto A = hashBytes("hello", 5);
25 const auto B = hashBytes("hello", 5);
26 EXPECT_EQ(A, B);
27}
28
29// Different inputs should (almost certainly) produce different hashes.
30TEST(HashTest, DifferentInputsDifferentHashes) {

Callers

nothing calls this directly

Calls 4

hashBytesFunction · 0.85
insertMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected