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

Method OnTestStart

test/src/rng_seed.cpp:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void RNGSeedManager::OnTestStart(const ::testing::TestInfo& test_info) {
38 if (m_stable) {
39 auto cname = test_info.test_case_name(), tname = test_info.name();
40 m_next_seed = mgb::XXHash{}
41 .update(cname, strlen(cname))
42 .update(".", 1)
43 .update(tname, strlen(tname))
44 .digest();
45 }
46}
47
48// vim: syntax=cpp.doxygen foldmethod=marker foldmarker=f{{{,f}}}

Callers

nothing calls this directly

Calls 3

nameMethod · 0.45
digestMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected