Skip to content

Commit

Permalink
more test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
benweint committed May 26, 2024
1 parent 76f7a37 commit ee89cea
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ cmp stdout ls-fields-expected.txt
exec gquil ls fields --of-type AppleVariety in.graphql
cmp stdout ls-fields-applevariety-expected.txt

exec gquil ls fields --from Apple.measurements in.graphql
cmp stdout ls-fields-reachable-expected.txt

-- in.graphql --
type Apple implements Edible {
variety: AppleVariety
measurements: Measurements
calories: Int
}

Expand All @@ -22,6 +26,12 @@ type Biscuit implements Edible {
calories: Int
}

type Measurements {
height: Int
width: Int
depth: Int
}

interface Edible {
calories: Int
}
Expand All @@ -46,14 +56,24 @@ ENUM AppleVariety
OBJECT Biscuit
INTERFACE Edible
UNION Fruits
OBJECT Measurements
OBJECT Orange
ENUM OrangeVariety
-- ls-fields-expected.txt --
Apple.calories: Int
Apple.measurements: Measurements
Apple.variety: AppleVariety
Biscuit.calories: Int
Edible.calories: Int
Measurements.depth: Int
Measurements.height: Int
Measurements.width: Int
Orange.calories: Int
Orange.variety: OrangeVariety
-- ls-fields-applevariety-expected.txt --
Apple.variety: AppleVariety
-- ls-fields-reachable-expected.txt --
Apple.measurements: Measurements
Measurements.depth: Int
Measurements.height: Int
Measurements.width: Int

0 comments on commit ee89cea

Please sign in to comment.