MCPcopy Create free account
hub / github.com/github/copilot-sdk / TestSanitizeVersion

Function TestSanitizeVersion

go/internal/embeddedcli/embeddedcli_test.go:122–128  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

120}
121
122func TestSanitizeVersion(t *testing.T) {
123 got := sanitizeVersion("v1.2.3+build/abc")
124 want := "v1.2.3_build_abc"
125 if got != want {
126 t.Fatalf("sanitizeVersion() = %q want %q", got, want)
127 }
128}
129
130func TestVersionedBinaryPath(t *testing.T) {
131 got := versionedBinaryPath("/tmp", "copilot.exe", "1.0.0")

Callers

nothing calls this directly

Calls 1

sanitizeVersionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…