From 6f46463340edc7a3247a71d8eaa576d43e00b149 Mon Sep 17 00:00:00 2001
From: Dimitrios Stoupis <dimitris.apple@gmail.com>
Date: Wed, 20 Mar 2019 23:49:19 +0000
Subject: [PATCH] Add some explantory commnets in the test file

---
 test/Services/TimeBasedSchedulingService.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/Services/TimeBasedSchedulingService.cpp b/test/Services/TimeBasedSchedulingService.cpp
index eab6a05c..81b4193c 100644
--- a/test/Services/TimeBasedSchedulingService.cpp
+++ b/test/Services/TimeBasedSchedulingService.cpp
@@ -11,13 +11,17 @@ namespace unit_test {
 			return tmService.executionFunctionStatus;
 		}
 
+		/*
+		 * Read the private member scheduled activities and since it is a list and it can't be
+		 * accessed, get each element and save it to a vector.
+		 */
 		static auto scheduledActivities(TimeBasedSchedulingService &tmService) {
 			std::vector<TimeBasedSchedulingService::ScheduledActivity*>listElements;
 
 			for (auto &element : tmService.scheduledActivities) {
 				listElements.push_back(&element);
 			}
-			return listElements;
+			return listElements; // Return the list elements
 		}
 	};
 }
-- 
GitLab