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

Function TEST

lite/test/test_misc.cpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19using namespace lite;
20
21TEST(TestMisc, DecryptionRegister) {
22 size_t number = decryption_static_data().decryption_methods.size();
23 //! At least one method is register by lite
24 ASSERT_GE(number, 1);
25 DecryptionFunc func;
26 register_decryption_and_key("AllForTest0", func, {});
27
28 ASSERT_EQ(number + 1, decryption_static_data().decryption_methods.size());
29}
30
31TEST(TestMisc, DecryptionUpdate) {
32 DecryptionFunc func;

Callers

nothing calls this directly

Calls 9

emplace_backMethod · 0.80
graph_compileMethod · 0.80
makeFunction · 0.50
sizeMethod · 0.45
validMethod · 0.45
loadMethod · 0.45
push_backMethod · 0.45
valueMethod · 0.45
raw_ptrMethod · 0.45

Tested by

no test coverage detected