integration

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RepoRoot

func RepoRoot(t *testing.T) string

RepoRoot returns the root of the genqlient repository,

func RunGenerateTest

func RunGenerateTest(t *testing.T, relConfigFilename string)

RunGenerateTest checks that running genqlient with the given repo-root-relative config file would not produce any changes to the checked-in files.

Types

type AnimalFields

type AnimalFields struct {
	Id    string                     `json:"id"`
	Hair  AnimalFieldsHairBeingsHair `json:"hair"`
	Owner AnimalFieldsOwnerBeing     `json:"-"`
}

AnimalFields includes the GraphQL fields of Animal requested by the fragment AnimalFields.

func (*AnimalFields) UnmarshalJSON

func (v *AnimalFields) UnmarshalJSON(b []byte) error

type AnimalFieldsHairBeingsHair

type AnimalFieldsHairBeingsHair struct {
	HasHair bool `json:"hasHair"`
}

AnimalFieldsHairBeingsHair includes the requested fields of the GraphQL type BeingsHair.

type AnimalFieldsOwnerAnimal

type AnimalFieldsOwnerAnimal struct {
	Typename string `json:"__typename"`
	Id       string `json:"id"`
}

AnimalFieldsOwnerAnimal includes the requested fields of the GraphQL type Animal.

func (*AnimalFieldsOwnerAnimal) GetId

func (v *AnimalFieldsOwnerAnimal) GetId() string

GetId is a part of, and documented with, the interface AnimalFieldsOwnerBeing.

func (*AnimalFieldsOwnerAnimal) GetTypename

func (v *AnimalFieldsOwnerAnimal) GetTypename() string

GetTypename is a part of, and documented with, the interface AnimalFieldsOwnerBeing.

type AnimalFieldsOwnerBeing

type AnimalFieldsOwnerBeing interface {

	// GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values).
	GetTypename() string
	// GetId returns the interface-field "id" from its implementation.
	GetId() string
	// contains filtered or unexported methods
}

AnimalFieldsOwnerBeing includes the requested fields of the GraphQL interface Being.

AnimalFieldsOwnerBeing is implemented by the following types: AnimalFieldsOwnerUser AnimalFieldsOwnerAnimal

type AnimalFieldsOwnerUser

type AnimalFieldsOwnerUser struct {
	Typename        string `json:"__typename"`
	Id              string `json:"id"`
	UserFields      `json:"-"`
	LuckyFieldsUser `json:"-"`
}

AnimalFieldsOwnerUser includes the requested fields of the GraphQL type User.

func (*AnimalFieldsOwnerUser) GetId

func (v *AnimalFieldsOwnerUser) GetId() string

GetId is a part of, and documented with, the interface AnimalFieldsOwnerBeing.

func (*AnimalFieldsOwnerUser) GetTypename

func (v *AnimalFieldsOwnerUser) GetTypename() string

GetTypename is a part of, and documented with, the interface AnimalFieldsOwnerBeing.

func (*AnimalFieldsOwnerUser) UnmarshalJSON

func (v *AnimalFieldsOwnerUser) UnmarshalJSON(b []byte) error

type LuckyFields

type LuckyFields interface {

	// GetLuckyNumber returns the interface-field "luckyNumber" from its implementation.
	GetLuckyNumber() int
	// contains filtered or unexported methods
}

LuckyFields includes the GraphQL fields of Lucky requested by the fragment LuckyFields.

LuckyFields is implemented by the following types: LuckyFieldsUser

type LuckyFieldsUser

type LuckyFieldsUser struct {
	MoreUserFields `json:"-"`
	LuckyNumber    int `json:"luckyNumber"`
}

LuckyFields includes the GraphQL fields of User requested by the fragment LuckyFields.

func (*LuckyFieldsUser) GetLuckyNumber

func (v *LuckyFieldsUser) GetLuckyNumber() int

GetLuckyNumber is a part of, and documented with, the interface LuckyFields.

func (*LuckyFieldsUser) UnmarshalJSON

func (v *LuckyFieldsUser) UnmarshalJSON(b []byte) error

type MoreUserFields

type MoreUserFields struct {
	Id   string             `json:"id"`
	Hair MoreUserFieldsHair `json:"hair"`
}

MoreUserFields includes the GraphQL fields of User requested by the fragment MoreUserFields.

type MoreUserFieldsHair

type MoreUserFieldsHair struct {
	Color string `json:"color"`
}

MoreUserFieldsHair includes the requested fields of the GraphQL type Hair.

type Species

type Species string
const (
	SpeciesDog        Species = "DOG"
	SpeciesCoelacanth Species = "COELACANTH"
)

type UserFields

type UserFields struct {
	Id              string `json:"id"`
	LuckyFieldsUser `json:"-"`
	MoreUserFields  `json:"-"`
}

UserFields includes the GraphQL fields of User requested by the fragment UserFields.

func (*UserFields) UnmarshalJSON

func (v *UserFields) UnmarshalJSON(b []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL