...

Source file src/github.com/99designs/gqlgen/codegen/testserver/followschema/useptr_test.go

Documentation: github.com/99designs/gqlgen/codegen/testserver/followschema

     1  package followschema
     2  
     3  import (
     4  	"reflect"
     5  	"testing"
     6  
     7  	"github.com/stretchr/testify/require"
     8  )
     9  
    10  func TestUserPtr(t *testing.T) {
    11  	s := &Stub{}
    12  	r := reflect.TypeOf(s.QueryResolver.OptionalUnion)
    13  	require.True(t, r.Out(0).Kind() == reflect.Interface)
    14  }
    15  

View as plain text