MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / add_cmd

Function add_cmd

tests/src/engine/test_console_interpreter.cpp:43–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43Result add_cmd(Args args)
44{
45 if (args.size() != 3)
46 return Result();
47
48 int a = 0, b = 0;
49 if (auto v = ds::parse<int>(args[1]))
50 a = *v;
51 if (auto v = ds::parse<int>(args[2]))
52 b = *v;
53
54 return { true, std::to_string(a + b) };
55}
56
57void test_commands()
58{

Callers

nothing calls this directly

Calls 2

ResultClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected