()
| 1765 | type jsonFileInfo protocol.FileInfo |
| 1766 | |
| 1767 | func (f jsonFileInfo) MarshalJSON() ([]byte, error) { |
| 1768 | m := fileIntfJSONMap(protocol.FileInfo(f)) |
| 1769 | m["numBlocks"] = len(f.Blocks) |
| 1770 | return json.Marshal(m) |
| 1771 | } |
| 1772 | |
| 1773 | func fileIntfJSONMap(f protocol.FileInfo) map[string]interface{} { |
| 1774 | out := map[string]interface{}{ |
nothing calls this directly
no test coverage detected