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

Function TestSetting_FillEnvFileContent

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

Source from the content-addressed store, hash-verified

113}
114
115func 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
127func TestSetting_Print(t *testing.T) {
128 setting := &Setting{

Callers

nothing calls this directly

Calls 2

FillEnvFileContentMethod · 0.95
StringMethod · 0.45

Tested by

no test coverage detected