diff --git a/src/MyQueue.cpp b/src/MyQueue.cpp index ad118e1..95f2cd9 100644 --- a/src/MyQueue.cpp +++ b/src/MyQueue.cpp @@ -17,3 +17,19 @@ bool MyQueue::IsEmpty() const { return _q.empty(); } + +void MyQueue::NewFunction1() +{ + // Complex demo function to show-off that we break code coverage with this change. + if (IsEmpty()) + { + static int nonsense = 0; + nonsense += 1; + } +} + +void MyQueue::NewFunction2() +{ + // Complex demo function to show-off that we break code coverage with this change. + NewFunction1(); +} diff --git a/src/MyQueue.h b/src/MyQueue.h index 847a6a8..bca117b 100644 --- a/src/MyQueue.h +++ b/src/MyQueue.h @@ -7,6 +7,8 @@ class MyQueue void Push(int val); void Pop(); bool IsEmpty() const; + void NewFunction1(); + void NewFunction2(); private: std::queue _q;