[llvm] [CI] Add unittesting for metrics collection script (PR #150360)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 24 09:11:55 PDT 2025


================
@@ -0,0 +1,66 @@
+# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+"""Tests for metrics.py"""
+
+from dataclasses import dataclass
+import requests
+import unittest
+import unittest.mock
+
+import metrics
+
+
+class TestMetrics(unittest.TestCase):
+    def test_upload_gauge_metric(self):
----------------
cmtice wrote:

Some comments about what the functions are supposed to do would be nice.

https://github.com/llvm/llvm-project/pull/150360


More information about the llvm-commits mailing list