MCPcopy Create free account
hub / github.com/danielmiessler/Fabric / TestSetting_FillEnvFileContent

Function TestSetting_FillEnvFileContent

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

Source from the content-addressed store, hash-verified

116}
117
118func TestSetting_FillEnvFileContent(t *testing.T) {
119 buffer := &bytes.Buffer{}
120 setting := &Setting{
121 EnvVariable: "TEST_SETTING",
122 Value: "test_value",
123 }
124 setting.FillEnvFileContent(buffer)
125
126 expected := "TEST_SETTING=test_value\n"
127 assert.Equal(t, expected, buffer.String())
128}
129
130func TestSetting_Print(t *testing.T) {
131 setting := &Setting{

Callers

nothing calls this directly

Calls 2

FillEnvFileContentMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected