]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Formatted code.
authorelene-margalit <elene.margalit@gmail.com>
Sun, 30 Aug 2020 11:06:53 +0000 (13:06 +0200)
committerelene-margalit <elene.margalit@gmail.com>
Sun, 30 Aug 2020 11:06:53 +0000 (13:06 +0200)
src/daemon/metric_test.c

index 469f52108831bb84e2d7718f10242eb8a8de2b8a..953584f831c5076b6bb591ef1543849eb9e15453 100644 (file)
@@ -308,40 +308,40 @@ DEF_TEST(distribution_marshal_text) {
     char const *want;
   } cases[] = {
       {
-        .value.distribution = distribution_new_linear(2, 20),
-        .want = "\"buckets:\" {\n"
-                "\"20.00\":\"0\",\n"
-                "\"inf\":\"0\"\n"
-                "},\n\"count\":\"0\",\n"
-                "\"sum\":\"0.00\n",
+          .value.distribution = distribution_new_linear(2, 20),
+          .want = "\"buckets:\" {\n"
+                  "\"20.00\":\"0\",\n"
+                  "\"inf\":\"0\"\n"
+                  "},\n\"count\":\"0\",\n"
+                  "\"sum\":\"0.00\n",
       },
       {
-        .value.distribution = distribution_new_exponential(10, 2, 3),
-        .want = "\"buckets:\" {\n"
-                "\"3.00\":\"0\",\n"
-                "\"6.00\":\"0\",\n"
-                "\"12.00\":\"0\",\n"
-                "\"24.00\":\"0\",\n"
-                "\"48.00\":\"0\",\n"
-                "\"96.00\":\"0\",\n"
-                "\"192.00\":\"0\",\n"
-                "\"384.00\":\"0\",\n"
-                "\"768.00\":\"0\",\n"
-                "\"inf\":\"0\"\n"
-                "},\n\"count\":\"0\",\n"
-                "\"sum\":\"0.00\n",
+          .value.distribution = distribution_new_exponential(10, 2, 3),
+          .want = "\"buckets:\" {\n"
+                  "\"3.00\":\"0\",\n"
+                  "\"6.00\":\"0\",\n"
+                  "\"12.00\":\"0\",\n"
+                  "\"24.00\":\"0\",\n"
+                  "\"48.00\":\"0\",\n"
+                  "\"96.00\":\"0\",\n"
+                  "\"192.00\":\"0\",\n"
+                  "\"384.00\":\"0\",\n"
+                  "\"768.00\":\"0\",\n"
+                  "\"inf\":\"0\"\n"
+                  "},\n\"count\":\"0\",\n"
+                  "\"sum\":\"0.00\n",
       },
       {
           .value.distribution =
               distribution_new_custom(4, (double[]){3, 10, 50, 100}),
-        .want = "\"buckets:\" {\n"
-                "\"3.00\":\"0\",\n"
-                "\"10.00\":\"0\",\n"
-                "\"50.00\":\"0\",\n"
-                "\"100.00\":\"0\",\n"
-                "\"inf\":\"0\"\n"
-                "},\n\"count\":\"0\",\n"
-                "\"sum\":\"0.00\n",
+          .want = "\"buckets:\" {\n"
+                  "\"3.00\":\"0\",\n"
+                  "\"10.00\":\"0\",\n"
+                  "\"50.00\":\"0\",\n"
+                  "\"100.00\":\"0\",\n"
+                  "\"inf\":\"0\"\n"
+                  "},\n\"count\":\"0\",\n"
+                  "\"sum\":\"0.00\n",
       },
   };