func TestJSONFilterRewritePackage(t *testing.T) { … } func TestJSONFilterMalformed(t *testing.T) { … } func TestJSONFilterBoundaries(t *testing.T) { … } func checkJSONFilter(t *testing.T, in, want string) { … } func checkJSONFilterWith(t *testing.T, want string, write func(*testJSONFilter)) { … }