INNER CODE UNIT · Go
strToSelectionSet
movio/bramble · auth_test.go:658
func strToSelectionSet(schema *ast.Schema, query string) ast.SelectionSet {
return gqlparser.MustLoadQuery(schema, query).Operations[0].SelectionSet
}
func assertSelectionSetsEqual(t *testing.T, schema *ast.Schema, expected, actual ast.SelectionSet) {
t.Helper()
expectedStr := formatSelectionSet(testContextWithoutVariables(nil), schema, expected)
actualStr := formatSelectionSet(testContextWithoutVariables(nil), schema, actual)
assert.Equal(t, expectedStr, actualStr)
}