MCPcopy Create free account
hub / github.com/WiringPi/WiringPi / TEST_F

Function TEST_F

wiringPi/gtest/test_isr_rising.cpp:39–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37uint32_t ISRRising::count = 0;
38
39TEST_F(ISRRising, Fundamental) {
40 EXPECT_EQ(count, 0u);
41 digitalWrite(TRIGGER_PIN, HIGH);
42 delay(10);
43 EXPECT_EQ(count, 1u);
44 digitalWrite(TRIGGER_PIN, LOW);
45 delay(10);
46 EXPECT_EQ(count, 1u);
47}
48
49TEST_F(ISRRising, ThreeTriggers) {
50 digitalWrite(TRIGGER_PIN, HIGH);

Callers

nothing calls this directly

Calls 3

digitalWriteFunction · 0.85
wiringPiISRFunction · 0.85
delayFunction · 0.50

Tested by

no test coverage detected