MCPcopy Create free account
hub / github.com/apache/brpc / TEST_F

Function TEST_F

test/bvar_agent_group_unittest.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74};
75
76TEST_F(AgentGroupTest, test_sanity) {
77 int id = AgentGroup<agent_type>::create_new_agent();
78 ASSERT_TRUE(id >= 0) << id;
79 agent_type *element = AgentGroup<agent_type>::get_or_create_tls_agent(id);
80 ASSERT_TRUE(element != NULL);
81 AgentGroup<agent_type>::destroy_agent(id);
82}
83
84butil::atomic<uint64_t> g_counter(0);
85

Callers

nothing calls this directly

Calls 4

n_elapsedMethod · 0.80
startMethod · 0.45
stopMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected