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

Function TEST_F

wiringPi/gtest/test_isr_rising2.cpp:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69struct counters ISRRising2::counters_b;
70
71TEST_F(ISRRising2, Fundamental) {
72 EXPECT_EQ(count, 0u);
73 EXPECT_EQ(count2, 0u);
74 digitalWrite(TRIGGER_PIN, HIGH);
75 delay(20);
76 EXPECT_EQ(count, 1u);
77 EXPECT_EQ(count2, 1u);
78 digitalWrite(TRIGGER_PIN, LOW);
79 delay(20);
80 EXPECT_EQ(count, 1u);
81 EXPECT_EQ(count2, 1u);
82}
83
84TEST_F(ISRRising2, ThreeTriggers) {
85 digitalWrite(TRIGGER_PIN, HIGH);

Callers

nothing calls this directly

Calls 3

digitalWriteFunction · 0.85
wiringPiISR2Function · 0.85
delayFunction · 0.50

Tested by

no test coverage detected