git/git_test.go 🔗
@@ -2,7 +2,10 @@
//
// SPDX-License-Identifier: Apache-2.0
-package git
+// Using package git instead of git_test to test unexported stringifyRepo function.
+// This function contains complex URL parsing logic that warrants direct testing,
+// and testing through the (current) public API would require external network requests.
+package git //nolint:testpackage
import (
"testing"