func TestRecordAttrs(t *testing.T) { … } func TestRecordSource(t *testing.T) { … } func TestAliasingAndClone(t *testing.T) { … } func newRecordWithAttrs(as []Attr) Record { … } func attrsSlice(r Record) []Attr { … } func attrsEqual(as1, as2 []Attr) bool { … } // Currently, pc(2) takes over 400ns, which is too expensive // to call it for every log message. func BenchmarkPC(b *testing.B) { … } func BenchmarkRecord(b *testing.B) { … }