Skip to content

Commit 099c58a

Browse files
authored
fix: Update test (#374)
1 parent b43b7ab commit 099c58a

92 files changed

Lines changed: 649 additions & 694 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/graphql_codegen/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.1.1
2+
3+
- Update `is` operators.
4+
15
# 1.1.0
26

37
- Add new experimental input builders for better `null` / *undefined* handling. Enable by setting `EXPERIMENTAL_enable_input_builders: true`.

packages/graphql_codegen/example/lib/fragments.graphql.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ class Fragment$PersonSummary {
118118
if (identical(this, other)) {
119119
return true;
120120
}
121-
if (!(other is Fragment$PersonSummary) ||
122-
runtimeType != other.runtimeType) {
121+
if (other is! Fragment$PersonSummary || runtimeType != other.runtimeType) {
123122
return false;
124123
}
125124
final l$nickname = nickname;
@@ -514,7 +513,7 @@ class Fragment$PersonParent {
514513
if (identical(this, other)) {
515514
return true;
516515
}
517-
if (!(other is Fragment$PersonParent) || runtimeType != other.runtimeType) {
516+
if (other is! Fragment$PersonParent || runtimeType != other.runtimeType) {
518517
return false;
519518
}
520519
final l$name = name;

packages/graphql_codegen/example/lib/main.graphql.dart

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Variables$Query$FetchPerson {
4343
if (identical(this, other)) {
4444
return true;
4545
}
46-
if (!(other is Variables$Query$FetchPerson) ||
46+
if (other is! Variables$Query$FetchPerson ||
4747
runtimeType != other.runtimeType) {
4848
return false;
4949
}
@@ -148,7 +148,7 @@ class Query$FetchPerson {
148148
if (identical(this, other)) {
149149
return true;
150150
}
151-
if (!(other is Query$FetchPerson) || runtimeType != other.runtimeType) {
151+
if (other is! Query$FetchPerson || runtimeType != other.runtimeType) {
152152
return false;
153153
}
154154
final l$fetchPerson = fetchPerson;
@@ -610,7 +610,7 @@ class Query$FetchPerson$fetchPerson implements Fragment$PersonSummary {
610610
if (identical(this, other)) {
611611
return true;
612612
}
613-
if (!(other is Query$FetchPerson$fetchPerson) ||
613+
if (other is! Query$FetchPerson$fetchPerson ||
614614
runtimeType != other.runtimeType) {
615615
return false;
616616
}
@@ -995,7 +995,7 @@ class Query$FetchPerson$fetchPerson$parents
995995
if (identical(this, other)) {
996996
return true;
997997
}
998-
if (!(other is Query$FetchPerson$fetchPerson$parents) ||
998+
if (other is! Query$FetchPerson$fetchPerson$parents ||
999999
runtimeType != other.runtimeType) {
10001000
return false;
10011001
}
@@ -1256,7 +1256,7 @@ class Variables$Mutation$UpdatePerson {
12561256
if (identical(this, other)) {
12571257
return true;
12581258
}
1259-
if (!(other is Variables$Mutation$UpdatePerson) ||
1259+
if (other is! Variables$Mutation$UpdatePerson ||
12601260
runtimeType != other.runtimeType) {
12611261
return false;
12621262
}
@@ -1362,7 +1362,7 @@ class Mutation$UpdatePerson {
13621362
if (identical(this, other)) {
13631363
return true;
13641364
}
1365-
if (!(other is Mutation$UpdatePerson) || runtimeType != other.runtimeType) {
1365+
if (other is! Mutation$UpdatePerson || runtimeType != other.runtimeType) {
13661366
return false;
13671367
}
13681368
final l$updatePerson = updatePerson;
@@ -1760,7 +1760,7 @@ class Mutation$UpdatePerson$updatePerson {
17601760
if (identical(this, other)) {
17611761
return true;
17621762
}
1763-
if (!(other is Mutation$UpdatePerson$updatePerson) ||
1763+
if (other is! Mutation$UpdatePerson$updatePerson ||
17641764
runtimeType != other.runtimeType) {
17651765
return false;
17661766
}
@@ -1886,7 +1886,7 @@ class Variables$Subscription$WatchPerson {
18861886
if (identical(this, other)) {
18871887
return true;
18881888
}
1889-
if (!(other is Variables$Subscription$WatchPerson) ||
1889+
if (other is! Variables$Subscription$WatchPerson ||
18901890
runtimeType != other.runtimeType) {
18911891
return false;
18921892
}
@@ -1995,7 +1995,7 @@ class Subscription$WatchPerson {
19951995
if (identical(this, other)) {
19961996
return true;
19971997
}
1998-
if (!(other is Subscription$WatchPerson) ||
1998+
if (other is! Subscription$WatchPerson ||
19991999
runtimeType != other.runtimeType) {
20002000
return false;
20012001
}
@@ -2290,7 +2290,7 @@ class Subscription$WatchPerson$watchPerson {
22902290
if (identical(this, other)) {
22912291
return true;
22922292
}
2293-
if (!(other is Subscription$WatchPerson$watchPerson) ||
2293+
if (other is! Subscription$WatchPerson$watchPerson ||
22942294
runtimeType != other.runtimeType) {
22952295
return false;
22962296
}

packages/graphql_codegen/example/lib/schema.graphqls.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ class Input$UpdatePersonInput {
7373
if (identical(this, other)) {
7474
return true;
7575
}
76-
if (!(other is Input$UpdatePersonInput) ||
77-
runtimeType != other.runtimeType) {
76+
if (other is! Input$UpdatePersonInput || runtimeType != other.runtimeType) {
7877
return false;
7978
}
8079
final l$id = id;

packages/graphql_codegen/example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ packages:
342342
path: ".."
343343
relative: true
344344
source: path
345-
version: "1.0.1"
345+
version: "1.1.0"
346346
graphql_flutter:
347347
dependency: "direct main"
348348
description:

packages/graphql_codegen/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: |
33
Simple, opinionated, codegen library for GraphQL. It allows you to
44
generate serializers and client helpers to easily call and parse your data.
55
6-
version: 1.1.0
6+
version: 1.1.1
77
homepage: https://github.com/heftapp/graphql_codegen/tree/main/packages/graphql_codegen
88
repository: https://github.com/heftapp/graphql_codegen/tree/main/packages/graphql_codegen
99

packages/graphql_codegen/test/assets/add_typenames/schema.graphql.dart

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ class Fragment$FReport {
224224
if (identical(this, other)) {
225225
return true;
226226
}
227-
if (!(other is Fragment$FReport) || runtimeType != other.runtimeType) {
227+
if (other is! Fragment$FReport || runtimeType != other.runtimeType) {
228228
return false;
229229
}
230230
final l$title = title;
@@ -431,7 +431,7 @@ class Query$Q {
431431
if (identical(this, other)) {
432432
return true;
433433
}
434-
if (!(other is Query$Q) || runtimeType != other.runtimeType) {
434+
if (other is! Query$Q || runtimeType != other.runtimeType) {
435435
return false;
436436
}
437437
final l$docsWithTypename = docsWithTypename;
@@ -830,7 +830,7 @@ class Query$Q$docsWithTypename {
830830
if (identical(this, other)) {
831831
return true;
832832
}
833-
if (!(other is Query$Q$docsWithTypename) ||
833+
if (other is! Query$Q$docsWithTypename ||
834834
runtimeType != other.runtimeType) {
835835
return false;
836836
}
@@ -964,7 +964,7 @@ class Query$Q$docsWithTypename$$Contract implements Query$Q$docsWithTypename {
964964
if (identical(this, other)) {
965965
return true;
966966
}
967-
if (!(other is Query$Q$docsWithTypename$$Contract) ||
967+
if (other is! Query$Q$docsWithTypename$$Contract ||
968968
runtimeType != other.runtimeType) {
969969
return false;
970970
}
@@ -1057,7 +1057,7 @@ class Query$Q$docsWithTypename$$Report implements Query$Q$docsWithTypename {
10571057
if (identical(this, other)) {
10581058
return true;
10591059
}
1060-
if (!(other is Query$Q$docsWithTypename$$Report) ||
1060+
if (other is! Query$Q$docsWithTypename$$Report ||
10611061
runtimeType != other.runtimeType) {
10621062
return false;
10631063
}
@@ -1172,7 +1172,7 @@ class Query$Q$docsWihtoutTypename {
11721172
if (identical(this, other)) {
11731173
return true;
11741174
}
1175-
if (!(other is Query$Q$docsWihtoutTypename) ||
1175+
if (other is! Query$Q$docsWihtoutTypename ||
11761176
runtimeType != other.runtimeType) {
11771177
return false;
11781178
}
@@ -1338,7 +1338,7 @@ class Query$Q$docsWihtoutTypename$$Contract
13381338
if (identical(this, other)) {
13391339
return true;
13401340
}
1341-
if (!(other is Query$Q$docsWihtoutTypename$$Contract) ||
1341+
if (other is! Query$Q$docsWihtoutTypename$$Contract ||
13421342
runtimeType != other.runtimeType) {
13431343
return false;
13441344
}
@@ -1464,7 +1464,7 @@ class Query$Q$docsWihtoutTypename$$Report
14641464
if (identical(this, other)) {
14651465
return true;
14661466
}
1467-
if (!(other is Query$Q$docsWihtoutTypename$$Report) ||
1467+
if (other is! Query$Q$docsWihtoutTypename$$Report ||
14681468
runtimeType != other.runtimeType) {
14691469
return false;
14701470
}
@@ -1574,7 +1574,7 @@ class Query$Q$docsWithAliasedTypename {
15741574
if (identical(this, other)) {
15751575
return true;
15761576
}
1577-
if (!(other is Query$Q$docsWithAliasedTypename) ||
1577+
if (other is! Query$Q$docsWithAliasedTypename ||
15781578
runtimeType != other.runtimeType) {
15791579
return false;
15801580
}
@@ -1668,7 +1668,7 @@ class Query$Q$docsWithAliasedTypename$$Contract
16681668
if (identical(this, other)) {
16691669
return true;
16701670
}
1671-
if (!(other is Query$Q$docsWithAliasedTypename$$Contract) ||
1671+
if (other is! Query$Q$docsWithAliasedTypename$$Contract ||
16721672
runtimeType != other.runtimeType) {
16731673
return false;
16741674
}
@@ -1763,7 +1763,7 @@ class Query$Q$docsWithAliasedTypename$$Report
17631763
if (identical(this, other)) {
17641764
return true;
17651765
}
1766-
if (!(other is Query$Q$docsWithAliasedTypename$$Report) ||
1766+
if (other is! Query$Q$docsWithAliasedTypename$$Report ||
17671767
runtimeType != other.runtimeType) {
17681768
return false;
17691769
}
@@ -1864,7 +1864,7 @@ class Query$Q$docsWithFragment {
18641864
if (identical(this, other)) {
18651865
return true;
18661866
}
1867-
if (!(other is Query$Q$docsWithFragment) ||
1867+
if (other is! Query$Q$docsWithFragment ||
18681868
runtimeType != other.runtimeType) {
18691869
return false;
18701870
}
@@ -2012,7 +2012,7 @@ class Query$Q$docsWithFragment$$Contract implements Query$Q$docsWithFragment {
20122012
if (identical(this, other)) {
20132013
return true;
20142014
}
2015-
if (!(other is Query$Q$docsWithFragment$$Contract) ||
2015+
if (other is! Query$Q$docsWithFragment$$Contract ||
20162016
runtimeType != other.runtimeType) {
20172017
return false;
20182018
}
@@ -2137,7 +2137,7 @@ class Query$Q$docsWithFragment$$Report
21372137
if (identical(this, other)) {
21382138
return true;
21392139
}
2140-
if (!(other is Query$Q$docsWithFragment$$Report) ||
2140+
if (other is! Query$Q$docsWithFragment$$Report ||
21412141
runtimeType != other.runtimeType) {
21422142
return false;
21432143
}

packages/graphql_codegen/test/assets/condition_example/fragments.graphql.dart

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Fragment$Condition {
5252
if (identical(this, other)) {
5353
return true;
5454
}
55-
if (!(other is Fragment$Condition) || runtimeType != other.runtimeType) {
55+
if (other is! Fragment$Condition || runtimeType != other.runtimeType) {
5656
return false;
5757
}
5858
final l$name = name;
@@ -245,7 +245,7 @@ class Fragment$Condition$$AndCondition implements Fragment$Condition {
245245
if (identical(this, other)) {
246246
return true;
247247
}
248-
if (!(other is Fragment$Condition$$AndCondition) ||
248+
if (other is! Fragment$Condition$$AndCondition ||
249249
runtimeType != other.runtimeType) {
250250
return false;
251251
}
@@ -371,7 +371,7 @@ class Fragment$Condition$$TimeCondition implements Fragment$Condition {
371371
if (identical(this, other)) {
372372
return true;
373373
}
374-
if (!(other is Fragment$Condition$$TimeCondition) ||
374+
if (other is! Fragment$Condition$$TimeCondition ||
375375
runtimeType != other.runtimeType) {
376376
return false;
377377
}
@@ -516,7 +516,7 @@ class Fragment$AndCondition implements Fragment$Condition$$AndCondition {
516516
if (identical(this, other)) {
517517
return true;
518518
}
519-
if (!(other is Fragment$AndCondition) || runtimeType != other.runtimeType) {
519+
if (other is! Fragment$AndCondition || runtimeType != other.runtimeType) {
520520
return false;
521521
}
522522
final l$left = left;
@@ -757,7 +757,7 @@ class Fragment$CompositeCondition implements Fragment$Condition {
757757
if (identical(this, other)) {
758758
return true;
759759
}
760-
if (!(other is Fragment$CompositeCondition) ||
760+
if (other is! Fragment$CompositeCondition ||
761761
runtimeType != other.runtimeType) {
762762
return false;
763763
}
@@ -991,7 +991,7 @@ class Fragment$CompositeCondition$$AndCondition
991991
if (identical(this, other)) {
992992
return true;
993993
}
994-
if (!(other is Fragment$CompositeCondition$$AndCondition) ||
994+
if (other is! Fragment$CompositeCondition$$AndCondition ||
995995
runtimeType != other.runtimeType) {
996996
return false;
997997
}
@@ -1173,7 +1173,7 @@ class Fragment$CompositeCondition$$TimeCondition
11731173
if (identical(this, other)) {
11741174
return true;
11751175
}
1176-
if (!(other is Fragment$CompositeCondition$$TimeCondition) ||
1176+
if (other is! Fragment$CompositeCondition$$TimeCondition ||
11771177
runtimeType != other.runtimeType) {
11781178
return false;
11791179
}
@@ -1319,7 +1319,7 @@ class Fragment$NonCompositeCondition implements Fragment$Condition {
13191319
if (identical(this, other)) {
13201320
return true;
13211321
}
1322-
if (!(other is Fragment$NonCompositeCondition) ||
1322+
if (other is! Fragment$NonCompositeCondition ||
13231323
runtimeType != other.runtimeType) {
13241324
return false;
13251325
}
@@ -1527,7 +1527,7 @@ class Fragment$NonCompositeCondition$$AndCondition
15271527
if (identical(this, other)) {
15281528
return true;
15291529
}
1530-
if (!(other is Fragment$NonCompositeCondition$$AndCondition) ||
1530+
if (other is! Fragment$NonCompositeCondition$$AndCondition ||
15311531
runtimeType != other.runtimeType) {
15321532
return false;
15331533
}
@@ -1667,7 +1667,7 @@ class Fragment$NonCompositeCondition$$TimeCondition
16671667
if (identical(this, other)) {
16681668
return true;
16691669
}
1670-
if (!(other is Fragment$NonCompositeCondition$$TimeCondition) ||
1670+
if (other is! Fragment$NonCompositeCondition$$TimeCondition ||
16711671
runtimeType != other.runtimeType) {
16721672
return false;
16731673
}
@@ -1814,8 +1814,7 @@ class Fragment$TimeCondition implements Fragment$Condition$$TimeCondition {
18141814
if (identical(this, other)) {
18151815
return true;
18161816
}
1817-
if (!(other is Fragment$TimeCondition) ||
1818-
runtimeType != other.runtimeType) {
1817+
if (other is! Fragment$TimeCondition || runtimeType != other.runtimeType) {
18191818
return false;
18201819
}
18211820
final l$name = name;

packages/graphql_codegen/test/assets/condition_example/query.graphql.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ class Query$FetchShouldRender {
4545
if (identical(this, other)) {
4646
return true;
4747
}
48-
if (!(other is Query$FetchShouldRender) ||
49-
runtimeType != other.runtimeType) {
48+
if (other is! Query$FetchShouldRender || runtimeType != other.runtimeType) {
5049
return false;
5150
}
5251
final l$shouldRender = shouldRender;

0 commit comments

Comments
 (0)