MCPcopy Create free account
hub / github.com/GoTestTools/gotestfmt / MarshalJSON

Method MarshalJSON

tokenizer/event.go:103–116  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103func (e *Event) MarshalJSON() ([]byte, error) {
104 tmp := tmpEvent{
105 Action: e.Action,
106 Package: e.Package,
107 Version: e.Version,
108 Test: e.Test,
109 Elapsed: e.Elapsed.String(),
110 Output: e.Output,
111 Cached: e.Cached,
112 Coverage: e.Coverage,
113 JSON: e.JSON,
114 }
115 return json.Marshal(tmp)
116}

Callers 1

StringMethod · 0.95

Calls 1

StringMethod · 0.80

Tested by

no test coverage detected