]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Add skeleton of tests for functions from utils_test.h file
authorBarbara Kaczorowska <bkjg@google.com>
Fri, 14 Aug 2020 14:00:48 +0000 (14:00 +0000)
committerBarbara Kaczorowska <bkjg@google.com>
Wed, 19 Aug 2020 07:42:07 +0000 (07:42 +0000)
src/daemon/utils_cache_test.c [new file with mode: 0644]

diff --git a/src/daemon/utils_cache_test.c b/src/daemon/utils_cache_test.c
new file mode 100644 (file)
index 0000000..be294af
--- /dev/null
@@ -0,0 +1,59 @@
+/**
+ * collectd - src/daemon/utils_cache_test.c
+ * Copyright (C) 2020       Barbara bkjg Kaczorowska
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Authors:
+ *   Barbara bkjg Kaczorowska <bkjg at google.com>
+ */
+
+#include "collectd.h"
+
+#include "testing.h"
+#include "utils_cache.h"
+
+DEF_TEST(uc_insert) {
+
+  return 0;
+}
+
+DEF_TEST(uc_update) {
+
+  return 0;
+}
+
+DEF_TEST(uc_get_percentile) {
+
+  return 0;
+}
+
+DEF_TEST(uc_get_rate) {
+
+  return 0;
+}
+
+int main() {
+  RUN_TEST(uc_insert);
+  RUN_TEST(uc_update);
+  RUN_TEST(uc_get_percentile);
+  RUN_TEST(uc_get_rate);
+
+  return 0;
+}