mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 06:26:30 +01:00
* expose underlying format options Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * remove escape html options and address PR feedback Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * incorporate PR feedback Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fix cli test Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
16 lines
314 B
Go
16 lines
314 B
Go
package options
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestFormatSPDXJSON_buildConfig(t *testing.T) {
|
|
// assert when building the config that we respond to all possible fields
|
|
|
|
ft := &FormatSPDXJSON{}
|
|
ft = setAllToNonZero(t, ft).(*FormatSPDXJSON)
|
|
|
|
subject := ft.buildConfig("Version")
|
|
assertExpectedValue(t, subject)
|
|
}
|