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

Method SetUpTestSuite

wiringPi/gtest/test_isr_falling.cpp:13–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11class ISRFalling : public ::testing::Test {
12 public:
13 static void SetUpTestSuite() {
14 wiringPiSetup();
15 pinMode(TRIGGER_PIN, OUTPUT);
16 digitalWrite(TRIGGER_PIN, HIGH);
17 wiringPiISR(LISTENER_PIN, INT_EDGE_FALLING, ISRFalling::TriggerCount);
18 delay(100);
19 }
20
21 static void TearDownTestSuite() { digitalWrite(TRIGGER_PIN, LOW); }
22

Callers

nothing calls this directly

Calls 5

wiringPiSetupFunction · 0.85
pinModeFunction · 0.85
digitalWriteFunction · 0.85
wiringPiISRFunction · 0.85
delayFunction · 0.50

Tested by

no test coverage detected