MCPcopy Create free account
hub / github.com/Scalingo/cli / TestParseVariable

Function TestParseVariable

env/edit_test.go:41–50  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

39 }
40}
41
42func TestParseVariable(t *testing.T) {
43 v := "VAR1=VAL1"
44 name, value := parseVariable(v)
45 if name != "VAR1" {
46 t.Fatal("expected VAR1, got", name)
47 }
48 if value != "VAL1" {
49 t.Fatal("expected VAL1, got", value)
50 }
51}

Callers

nothing calls this directly

Calls 1

parseVariableFunction · 0.85

Tested by

no test coverage detected