(t *testing.T)
| 113 | } |
| 114 | |
| 115 | func TestSetting_FillEnvFileContent(t *testing.T) { |
| 116 | buffer := &bytes.Buffer{} |
| 117 | setting := &Setting{ |
| 118 | EnvVariable: "TEST_SETTING", |
| 119 | Value: "test_value", |
| 120 | } |
| 121 | setting.FillEnvFileContent(buffer) |
| 122 | |
| 123 | expected := "TEST_SETTING=test_value\n" |
| 124 | assert.Equal(t, expected, buffer.String()) |
| 125 | } |
| 126 | |
| 127 | func TestSetting_Print(t *testing.T) { |
| 128 | setting := &Setting{ |
nothing calls this directly
no test coverage detected