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: limiter_test.go
    path of file: ./repos/cockroach/pkg/kv/kvserver/tenantrate
    
    the code of the file until where you have to start completion: // Copyright 2020 The Cockroach Authors.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.

package tenantrate_test

import (
	"context"
	"fmt"
	"math"
	"regexp"
	"runtime"
	"sort"
	"
    
func (ts *testState) recordRead(t *testing.T, d *datadriven.TestData) string {
	var reads []struct {
		Tenant       uint64
		ReadRequests int64
		ReadBytes    int64
	}
	if err := yaml.UnmarshalStrict([]byte(d.Input), &reads); err != nil {
		d.Fatalf(t, "failed to unmarshal reads: %v", err)
	}
	for _, r := range reads {
		tid := roachpb.MustMakeTenantID(r.Tenant)
		lims := ts.tenants[tid]
		if len(lims) == 0 {
			d.Fatalf(t, "no outstanding limiters for %v", tid)
		}
		lims[0].RecordRead(
			context.Background(), tenantcostmodel.TestingResponseInfo(true, r.ReadRequests, r.ReadBytes, 1))
	}
	return ts.FormatRunning()
}