From df56cd2671007f132800f7cebcfa8b656e090985 Mon Sep 17 00:00:00 2001 From: Sven Scharmentke <24257042+svnscha@users.noreply.github.com> Date: Wed, 26 Mar 2025 00:39:28 +0100 Subject: [PATCH] Nonsense. Please approve. --- src/MyQueue.cpp | 16 ++++++++++++++++ src/MyQueue.h | 2 ++ 2 files changed, 18 insertions(+) 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;