MCPcopy
hub / github.com/keploy/keploy / TestFileExtension

Function TestFileExtension

pkg/platform/yaml/codec_test.go:71–78  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

69}
70
71func TestFileExtension(t *testing.T) {
72 if FormatYAML.FileExtension() != "yaml" {
73 t.Error("FormatYAML.FileExtension() != yaml")
74 }
75 if FormatJSON.FileExtension() != "json" {
76 t.Error("FormatJSON.FileExtension() != json")
77 }
78}
79
80// TestMarshalDocJSON verifies MarshalDoc produces valid JSON.
81func TestMarshalDocJSON(t *testing.T) {

Callers

nothing calls this directly

Calls 2

FileExtensionMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected