...

Source file src/github.com/vektah/gqlparser/parser/query_test.go

Documentation: github.com/vektah/gqlparser/parser

     1  package parser
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/vektah/gqlparser/ast"
     7  	"github.com/vektah/gqlparser/parser/testrunner"
     8  )
     9  
    10  func TestQueryDocument(t *testing.T) {
    11  	testrunner.Test(t, "query_test.yml", func(t *testing.T, input string) testrunner.Spec {
    12  		doc, err := ParseQuery(&ast.Source{Input: input, Name: "spec"})
    13  		return testrunner.Spec{
    14  			Error: err,
    15  			AST:   ast.Dump(doc),
    16  		}
    17  	})
    18  }
    19  

View as plain text