MCPcopy
hub / github.com/danielmiessler/Fabric / TestSetting_Print

Function TestSetting_Print

internal/plugins/plugin_test.go:127–137  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

125}
126
127func TestSetting_Print(t *testing.T) {
128 setting := &Setting{
129 EnvVariable: "TEST_SETTING",
130 Value: "test_value",
131 }
132 expected := "TEST_SETTING: test_value\n"
133 fmtOutput := captureOutput(func() {
134 setting.Print()
135 })
136 assert.Equal(t, expected, fmtOutput)
137}
138
139func TestSetupQuestion_Ask(t *testing.T) {
140 setting := &Setting{

Callers

nothing calls this directly

Calls 2

PrintMethod · 0.95
captureOutputFunction · 0.85

Tested by

no test coverage detected