(t *testing.T)
| 125 | } |
| 126 | |
| 127 | func 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 | |
| 139 | func TestSetupQuestion_Ask(t *testing.T) { |
| 140 | setting := &Setting{ |
nothing calls this directly
no test coverage detected