MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / TEST_F

Function TEST_F

test/tests/CryptTests.cpp:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41};
42
43TEST_F(CryptTests, SHA1_Basic)
44{
45 std::string input = "The quick brown fox jumped over the lazy dog.";
46 auto result = Crypt::SHA1(input.data(), input.size());
47 AssertHash("c0854fb9fb03c41cce3802cb0d220529e6eef94e", result);
48}
49
50TEST_F(CryptTests, SHA1_Multiple)
51{

Callers

nothing calls this directly

Calls 15

SHA1Function · 0.85
ReadAllTextFunction · 0.85
NormaliseLineEndingsFunction · 0.85
findMethod · 0.80
CreateSHA1Function · 0.50
CreateRSAKeyFunction · 0.50
CreateRSAFunction · 0.50
dataMethod · 0.45
sizeMethod · 0.45
UpdateMethod · 0.45
FinishMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected