MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / TEST_CASE

Function TEST_CASE

test/bit_signal.cpp:4–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include <test.hpp>
3
4TEST_CASE(triggered)
5{
6 migraphx::bit_signal<64> signals;
7 EXPECT(signals.nslots() == 0);
8 auto slot = signals.subscribe();
9 EXPECT(signals.nslots() == 1);
10 EXPECT(slot.valid());
11 EXPECT(not slot.triggered());
12 signals.notify();
13 EXPECT(slot.triggered());
14}
15
16TEST_CASE(default_slot)
17{

Callers

nothing calls this directly

Calls 6

slotClass · 0.85
nslotsMethod · 0.80
subscribeMethod · 0.80
notifyMethod · 0.80
validMethod · 0.45
triggeredMethod · 0.45

Tested by

no test coverage detected