MCPcopy Create free account
hub / github.com/cli/cli / TestOutputForEnvironment

Function TestOutputForEnvironment

acceptance/acceptance_test.go:590–597  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

588}
589
590func TestOutputForEnvironment(t *testing.T) {
591 value, err := outputForEnvironment("1234\n")
592 require.NoError(t, err)
593 assert.Equal(t, "1234", value)
594
595 _, err = outputForEnvironment("\n")
596 require.EqualError(t, err, "command output is empty")
597}
598
599func TestAcceptance(t *testing.T) {
600 var tsEnv testScriptEnv

Callers

nothing calls this directly

Calls 2

outputForEnvironmentFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected