()
| 15 | } |
| 16 | |
| 17 | func (t *TestCase) MarshalJSON() ([]byte, error) { |
| 18 | tmp := tmpTestCase{ |
| 19 | Name: t.Name, |
| 20 | Result: t.Result, |
| 21 | Duration: t.Duration.String(), |
| 22 | Coverage: t.Coverage, |
| 23 | Output: t.Output, |
| 24 | } |
| 25 | return json.Marshal(tmp) |
| 26 | } |
| 27 | |
| 28 | func (t *TestCase) UnmarshalJSON(data []byte) error { |
| 29 | var tmp tmpTestCase |