MCPcopy Create free account
hub / github.com/exercism/cli / TestCurrentVersion

Function TestCurrentVersion

cmd/version_test.go:13–18  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestCurrentVersion(t *testing.T) {
14 expected := fmt.Sprintf("exercism version %s", Version)
15
16 actual := currentVersion()
17 assert.Equal(t, expected, actual)
18}
19
20func TestVersionUpdateCheck(t *testing.T) {
21 fakeEndpoint := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers

nothing calls this directly

Calls 1

currentVersionFunction · 0.85

Tested by

no test coverage detected