MCPcopy Create free account
hub / github.com/Samsung/ONE / TEST

Function TEST

compiler/luci/pass/src/ModulePhase.test.cpp:25–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include <gtest/gtest.h>
24
25TEST(ModulePhaseTest, saturate)
26{
27 auto m = luci::make_module();
28 auto g = loco::make_graph();
29 m->add(std::move(g));
30
31 luci::Phase phase;
32
33 // Any Pass will do for testing
34 phase.emplace_back(std::make_unique<luci::CircleShapeInferencePass>());
35
36 luci::PhaseRunner<logo::PhaseStrategy::Saturate> phase_runner{m.get()};
37 phase_runner.run(phase);
38
39 SUCCEED();
40}
41
42TEST(ModulePhaseTest, restart)
43{

Callers

nothing calls this directly

Calls 6

make_moduleFunction · 0.85
make_graphFunction · 0.50
addMethod · 0.45
emplace_backMethod · 0.45
getMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected