mirror of
https://github.com/anchore/syft.git
synced 2026-02-13 19:16:43 +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
329 B
Go
16 lines
329 B
Go
package options
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestFormatCyclonedxXML_buildConfig(t *testing.T) {
|
|
// assert when building the config that we respond to all possible fields
|
|
|
|
ft := FormatCyclonedxXML{}
|
|
ftp := setAllToNonZero(t, &ft).(*FormatCyclonedxXML)
|
|
|
|
subject := ftp.buildConfig("Version")
|
|
assertExpectedValue(t, subject)
|
|
}
|