MCPcopy Create free account
hub / github.com/baidu/babylon / function

Method function

test/test_executor.cpp:23–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21TEST_F(ExecutorTest, can_execute_normal_function) {
22 struct S {
23 static int function(int i) {
24 return value() += i;
25 }
26 static int& value() {
27 static int v = 1;
28 return v;

Callers 1

TEST_FFunction · 0.45

Calls 2

valueFunction · 0.85
is_running_inMethod · 0.80

Tested by

no test coverage detected