MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / TestDefault

Function TestDefault

cli/pkg/ssh_config/validators_test.go:39–49  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

37}
38
39func TestDefault(t *testing.T) {
40 if v := Default("VisualHostKey"); v != "no" {
41 t.Errorf("Default(%q): got %v, want 'no'", "VisualHostKey", v)
42 }
43 if v := Default("visualhostkey"); v != "no" {
44 t.Errorf("Default(%q): got %v, want 'no'", "visualhostkey", v)
45 }
46 if v := Default("notfound"); v != "" {
47 t.Errorf("Default(%q): got %v, want ''", "notfound", v)
48 }
49}

Callers

nothing calls this directly

Calls 1

DefaultFunction · 0.85

Tested by

no test coverage detected