class Covered::Statistics

def as_json

@returns [Hash] The total statistics and path statistics.
A JSON-compatible representation of these statistics.
def as_json
	{
		total: total.as_json,
		paths: @paths.map{|path, coverage| [path, coverage.as_json]}.to_h,
	}
end