You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stats_test.go
    path of file: ./repos/fortio/stats
    
    the code of the file until where you have to start completion: // Copyright 2017 Fortio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
/
    
func TestHistogramData(t *testing.T) {
	h := NewHistogram(0, 1)
	h.Record(-1)
	h.RecordN(0, 3)
	h.Record(1)
	h.Record(2)
	h.Record(3)
	h.Record(4)
	h.RecordN(5, 2)
	percs := []float64{0, 1, 10, 25, 40, 50, 60, 70, 80, 90, 99, 100}
	e := h.Export().CalcPercentiles(percs)
	e.Print(os.Stdout, "TestHistogramData")
	assert.CheckEquals(t, int64(10), e.Count, "10 data points")
	assert.CheckEquals(t, 1.9, e.Avg, "avg should be 2")
	assert.CheckEquals(t, e.Percentiles[0], Percentile{0, -1}, "p0 should be -1 (min)")
	assert.CheckEquals(t, e.Percentiles[1], Percentile{1, -1}, "p1 should be -1 (min)")
	assert.CheckEquals(t, e.Percentiles[2], Percentile{10, -1}, "p10 should be 1 (1/10 at min)")
	assert.CheckEquals(t, e.Percentiles[3], Percentile{25, -0.5}, "p25 should be half between -1 and 0")
	assert.CheckEquals(t, e.Percentiles[4], Percentile{40, 0}, "p40 should still be 0 (4/10 data pts at 0)")
	assert.CheckEquals(t, e.Percentiles[5], Percentile{50, 1}, "p50 should 1 (5th/10 point is 1)")
	assert.CheckEquals(t, e.Percentiles[6], Percentile{60, 2}, "p60 should 2 (6th/10 point is 2)")
	assert.CheckEquals(t, e.Percentiles[7], Percentile{70, 3}, "p70 should 3 (7th/10 point is 3)")
	assert.CheckEquals(t, e.Percentiles[8], Percentile{80, 4}, "p80 should 4 (8th/10 point is 4)")
	assert.CheckEquals(t, e.Percentiles[9], Percentile{90, 4.5}, "p90 should between 4 and 5 (2 points in bucket)")
	assert.CheckEquals(t, e.Percentiles[10], Percentile{99, 4.95}, "p99")
	assert.CheckEquals(t, e.Percentiles[11], Percentile{100, 5}, "p100 should 5 (10th/10 point is 5 and max is 5)")
	h.Log("test multi count", percs)
}