MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / TEST_CASE

Function TEST_CASE

test/base64_test.cpp:28–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include <array>
27
28TEST_CASE(base64_encoding)
29{
30 EXPECT(migraphx::base64_encode("abc") == "YWJj");
31
32 EXPECT(migraphx::base64_encode("abcd") == "YWJjZA==");
33
34 EXPECT(migraphx::base64_encode("convolution") == "Y29udm9sdXRpb24=");
35
36 EXPECT(migraphx::base64_encode("https://www.amd.com/en/products/software/rocm.html") ==
37 "aHR0cHM6Ly93d3cuYW1kLmNvbS9lbi9wcm9kdWN0cy9zb2Z0d2FyZS9yb2NtLmh0bWw=");
38
39 EXPECT(migraphx::base64_encode("{1, 3, 7, 9}") == "ezEsIDMsIDcsIDl9");
40}
41
42TEST_CASE(base64_rfc_test_vectors)
43{

Callers

nothing calls this directly

Calls 3

base64_encodeFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected