github.com/shippio/gqlgen@v0.0.0-20220912092219-633ea699ef07/graphql/context_path_test.go (about) 1 package graphql 2 3 import ( 4 "context" 5 "testing" 6 7 "github.com/stretchr/testify/require" 8 ) 9 10 func TestGetFieldInputContext(t *testing.T) { 11 require.Nil(t, GetFieldContext(context.Background())) 12 13 rc := &PathContext{} 14 require.Equal(t, rc, GetPathContext(WithPathContext(context.Background(), rc))) 15 }