// equal returns nil if p and q describe the same file set; // otherwise it returns an error describing the discrepancy. func equal(p, q *FileSet) error { … } func checkSerialize(t *testing.T, p *FileSet) { … } func TestSerialization(t *testing.T) { … }