-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathgit_types_test.dart
More file actions
704 lines (657 loc) · 23.2 KB
/
Copy pathgit_types_test.dart
File metadata and controls
704 lines (657 loc) · 23.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
import 'package:git2dart/git2dart.dart';
import 'package:git2dart/src/git_types.dart';
import 'package:test/test.dart';
void main() {
group('GitTypes', () {
test('ReferenceType returns correct values', () {
const expected = {
ReferenceType.invalid: 0,
ReferenceType.direct: 1,
ReferenceType.symbolic: 2,
ReferenceType.all: 3,
};
final actual = {for (final e in ReferenceType.values) e: e.value};
expect(actual, expected);
});
test('GitFilemode returns correct values', () {
const expected = {
GitFilemode.unreadable: 0,
GitFilemode.tree: 16384,
GitFilemode.blob: 33188,
GitFilemode.blobExecutable: 33261,
GitFilemode.link: 40960,
GitFilemode.commit: 57344,
};
final actual = {for (final e in GitFilemode.values) e: e.value};
expect(actual, expected);
});
test('GitSort returns correct values', () {
const expected = {
GitSort.none: 0,
GitSort.topological: 1,
GitSort.time: 2,
GitSort.reverse: 4,
};
final actual = {for (final e in GitSort.values) e: e.value};
expect(actual, expected);
});
test('GitObject returns correct values', () {
const expected = {
GitObject.any: -2,
GitObject.invalid: -1,
GitObject.commit: 1,
GitObject.tree: 2,
GitObject.blob: 3,
GitObject.tag: 4,
GitObject.offsetDelta: 6,
GitObject.refDelta: 7,
};
final actual = {for (final e in GitObject.values) e: e.value};
expect(actual, expected);
});
test('GitRevSpec returns correct values', () {
const expected = {
GitRevSpec.single: 1,
GitRevSpec.range: 2,
GitRevSpec.mergeBase: 4,
};
final actual = {for (final e in GitRevSpec.values) e: e.value};
expect(actual, expected);
});
test('GitBranch returns correct values', () {
const expected = {
GitBranch.local: 1,
GitBranch.remote: 2,
GitBranch.all: 3,
};
final actual = {for (final e in GitBranch.values) e: e.value};
expect(actual, expected);
});
test('GitStatus returns correct values', () {
const expected = {
GitStatus.current: 0,
GitStatus.indexNew: 1,
GitStatus.indexModified: 2,
GitStatus.indexDeleted: 4,
GitStatus.indexRenamed: 8,
GitStatus.indexTypeChange: 16,
GitStatus.wtNew: 128,
GitStatus.wtModified: 256,
GitStatus.wtDeleted: 512,
GitStatus.wtTypeChange: 1024,
GitStatus.wtRenamed: 2048,
GitStatus.wtUnreadable: 4096,
GitStatus.ignored: 16384,
GitStatus.conflicted: 32768,
};
final actual = {for (final e in GitStatus.values) e: e.value};
expect(actual, expected);
});
test('GitMergeAnalysis returns correct values', () {
const expected = {
GitMergeAnalysis.normal: 1,
GitMergeAnalysis.upToDate: 2,
GitMergeAnalysis.fastForward: 4,
GitMergeAnalysis.unborn: 8,
};
final actual = {for (final e in GitMergeAnalysis.values) e: e.value};
expect(actual, expected);
});
test('GitMergePreference returns correct values', () {
const expected = {
GitMergePreference.none: 0,
GitMergePreference.noFastForward: 1,
GitMergePreference.fastForwardOnly: 2,
};
final actual = {for (final e in GitMergePreference.values) e: e.value};
expect(actual, expected);
});
test('GitRepositoryState returns correct values', () {
const expected = {
GitRepositoryState.none: 0,
GitRepositoryState.merge: 1,
GitRepositoryState.revert: 2,
GitRepositoryState.revertSequence: 3,
GitRepositoryState.cherrypick: 4,
GitRepositoryState.cherrypickSequence: 5,
GitRepositoryState.bisect: 6,
GitRepositoryState.rebase: 7,
GitRepositoryState.rebaseInteractive: 8,
GitRepositoryState.rebaseMerge: 9,
GitRepositoryState.applyMailbox: 10,
GitRepositoryState.applyMailboxOrRebase: 11,
};
final actual = {for (final e in GitRepositoryState.values) e: e.value};
expect(actual, expected);
});
test('GitMergeFlag returns correct values', () {
const expected = {
GitMergeFlag.findRenames: 1,
GitMergeFlag.failOnConflict: 2,
GitMergeFlag.skipREUC: 4,
GitMergeFlag.noRecursive: 8,
};
final actual = {for (final e in GitMergeFlag.values) e: e.value};
expect(actual, expected);
});
test('GitMergeFileFavor returns correct values', () {
const expected = {
GitMergeFileFavor.normal: 0,
GitMergeFileFavor.ours: 1,
GitMergeFileFavor.theirs: 2,
GitMergeFileFavor.union: 3,
};
final actual = {for (final e in GitMergeFileFavor.values) e: e.value};
expect(actual, expected);
});
test('GitMergeFileFlag returns correct values', () {
const expected = {
GitMergeFileFlag.defaults: 0,
GitMergeFileFlag.styleMerge: 1,
GitMergeFileFlag.styleDiff3: 2,
GitMergeFileFlag.simplifyAlnum: 4,
GitMergeFileFlag.ignoreWhitespace: 8,
GitMergeFileFlag.ignoreWhitespaceChange: 16,
GitMergeFileFlag.ignoreWhitespaceEOL: 32,
GitMergeFileFlag.diffPatience: 64,
GitMergeFileFlag.diffMinimal: 128,
GitMergeFileFlag.styleZdiff3: 256,
GitMergeFileFlag.acceptConflicts: 512,
};
final actual = {for (final e in GitMergeFileFlag.values) e: e.value};
expect(actual, expected);
});
test('GitCheckout returns correct values', () {
const expected = {
GitCheckout.none: 0,
GitCheckout.safe: 1,
GitCheckout.force: 2,
GitCheckout.recreateMissing: 4,
GitCheckout.allowConflicts: 16,
GitCheckout.removeUntracked: 32,
GitCheckout.removeIgnored: 64,
GitCheckout.updateOnly: 128,
GitCheckout.dontUpdateIndex: 256,
GitCheckout.noRefresh: 512,
GitCheckout.skipUnmerged: 1024,
GitCheckout.useOurs: 2048,
GitCheckout.useTheirs: 4096,
GitCheckout.disablePathspecMatch: 8192,
GitCheckout.skipLockedDirectories: 262144,
GitCheckout.dontOverwriteIgnored: 524288,
GitCheckout.conflictStyleMerge: 1048576,
GitCheckout.conflictStyleDiff3: 2097152,
GitCheckout.dontRemoveExisting: 4194304,
GitCheckout.dontWriteIndex: 8388608,
GitCheckout.dryRun: 16777216,
GitCheckout.conflictStyleZdiff3: 33554432,
};
final actual = {for (final e in GitCheckout.values) e: e.value};
expect(actual, expected);
});
test('GitReset returns correct values', () {
const expected = {GitReset.soft: 1, GitReset.mixed: 2, GitReset.hard: 3};
final actual = {for (final e in GitReset.values) e: e.value};
expect(actual, expected);
});
test('GitDiff returns correct values', () {
const expected = {
GitDiff.normal: 0,
GitDiff.reverse: 1,
GitDiff.includeIgnored: 2,
GitDiff.recurseIgnoredDirs: 4,
GitDiff.includeUntracked: 8,
GitDiff.recurseUntrackedDirs: 16,
GitDiff.includeUnmodified: 32,
GitDiff.includeTypechange: 64,
GitDiff.includeTypechangeTrees: 128,
GitDiff.ignoreFilemode: 256,
GitDiff.ignoreSubmodules: 512,
GitDiff.ignoreCase: 1024,
GitDiff.includeCaseChange: 2048,
GitDiff.disablePathspecMatch: 4096,
GitDiff.skipBinaryCheck: 8192,
GitDiff.enableFastUntrackedDirs: 16384,
GitDiff.updateIndex: 32768,
GitDiff.includeUnreadable: 65536,
GitDiff.includeUnreadableAsUntracked: 131072,
GitDiff.indentHeuristic: 262144,
GitDiff.forceText: 1048576,
GitDiff.forceBinary: 2097152,
GitDiff.ignoreWhitespace: 4194304,
GitDiff.ignoreWhitespaceChange: 8388608,
GitDiff.ignoreWhitespaceEOL: 16777216,
GitDiff.showUntrackedContent: 33554432,
GitDiff.showUnmodified: 67108864,
GitDiff.patience: 268435456,
GitDiff.minimal: 536870912,
GitDiff.showBinary: 1073741824,
};
final actual = {for (final e in GitDiff.values) e: e.value};
expect(actual, expected);
});
test('GitDelta returns correct values', () {
const expected = {
GitDelta.unmodified: 0,
GitDelta.added: 1,
GitDelta.deleted: 2,
GitDelta.modified: 3,
GitDelta.renamed: 4,
GitDelta.copied: 5,
GitDelta.ignored: 6,
GitDelta.untracked: 7,
GitDelta.typechange: 8,
GitDelta.unreadable: 9,
GitDelta.conflicted: 10,
};
final actual = {for (final e in GitDelta.values) e: e.value};
expect(actual, expected);
});
test('GitDiffFlag returns correct values', () {
const expected = {
GitDiffFlag.binary: 1,
GitDiffFlag.notBinary: 2,
GitDiffFlag.validId: 4,
GitDiffFlag.exists: 8,
};
final actual = {for (final e in GitDiffFlag.values) e: e.value};
expect(actual, expected);
});
test('GitDiffStats returns correct values', () {
const expected = {
GitDiffStats.none: 0,
GitDiffStats.full: 1,
GitDiffStats.short: 2,
GitDiffStats.number: 4,
GitDiffStats.includeSummary: 8,
};
final actual = {for (final e in GitDiffStats.values) e: e.value};
expect(actual, expected);
});
test('GitDiffFind returns correct values', () {
const expected = {
GitDiffFind.byConfig: 0,
GitDiffFind.renames: 1,
GitDiffFind.renamesFromRewrites: 2,
GitDiffFind.copies: 4,
GitDiffFind.copiesFromUnmodified: 8,
GitDiffFind.rewrites: 16,
GitDiffFind.breakRewrites: 32,
GitDiffFind.andBreakRewrites: 48,
GitDiffFind.forUntracked: 64,
GitDiffFind.all: 255,
GitDiffFind.ignoreWhitespace: 4096,
GitDiffFind.dontIgnoreWhitespace: 8192,
GitDiffFind.exactMatchOnly: 16384,
GitDiffFind.breakRewritesForRenamesOnly: 32768,
GitDiffFind.removeUnmodified: 65536,
};
final actual = {for (final e in GitDiffFind.values) e: e.value};
expect(actual, expected);
});
test('GitDiffLine returns correct values', () {
const expected = {
GitDiffLine.context: 32,
GitDiffLine.addition: 43,
GitDiffLine.deletion: 45,
GitDiffLine.contextEOFNL: 61,
GitDiffLine.addEOFNL: 62,
GitDiffLine.delEOFNL: 60,
GitDiffLine.fileHeader: 70,
GitDiffLine.hunkHeader: 72,
GitDiffLine.binary: 66,
};
final actual = {for (final e in GitDiffLine.values) e: e.value};
expect(actual, expected);
});
group('GitApplyLocation', () {
test('returns correct values', () {
const expected = [0, 1, 2];
final actual = GitApplyLocation.values.map((e) => e.value).toList();
expect(actual, expected);
});
test('returns string representation of object', () {
expect(GitApplyLocation.workdir.toString(), 'GitApplyLocation.workdir');
});
});
test('GitConfigLevel returns correct values', () {
const expected = {
GitConfigLevel.programData: 1,
GitConfigLevel.system: 2,
GitConfigLevel.xdg: 3,
GitConfigLevel.global: 4,
GitConfigLevel.local: 5,
GitConfigLevel.app: 6,
GitConfigLevel.highest: -1,
};
final actual = {for (final e in GitConfigLevel.values) e: e.value};
expect(actual, expected);
});
test('GitStash returns correct values', () {
const expected = {
GitStash.defaults: 0,
GitStash.keepIndex: 1,
GitStash.includeUntracked: 2,
GitStash.includeIgnored: 4,
};
final actual = {for (final e in GitStash.values) e: e.value};
expect(actual, expected);
});
test('GitStashApply returns correct values', () {
const expected = {
GitStashApply.defaults: 0,
GitStashApply.reinstateIndex: 1,
};
final actual = {for (final e in GitStashApply.values) e: e.value};
expect(actual, expected);
});
test('GitDirection returns correct values', () {
const expected = {GitDirection.fetch: 0, GitDirection.push: 1};
final actual = {for (final e in GitDirection.values) e: e.value};
expect(actual, expected);
});
test('GitFetchPrune returns correct values', () {
const expected = {
GitFetchPrune.unspecified: 0,
GitFetchPrune.prune: 1,
GitFetchPrune.noPrune: 2,
};
final actual = {for (final e in GitFetchPrune.values) e: e.value};
expect(actual, expected);
});
test('GitRepositoryInit returns correct values', () {
const expected = {
GitRepositoryInit.bare: 1,
GitRepositoryInit.noReinit: 2,
GitRepositoryInit.noDotGitDir: 4,
GitRepositoryInit.mkdir: 8,
GitRepositoryInit.mkpath: 16,
GitRepositoryInit.externalTemplate: 32,
GitRepositoryInit.relativeGitlink: 64,
};
final actual = {for (final e in GitRepositoryInit.values) e: e.value};
expect(actual, expected);
});
test('GitCredential returns correct values', () {
const expected = {
GitCredential.userPassPlainText: 1,
GitCredential.sshKey: 2,
GitCredential.sshCustom: 4,
GitCredential.defaultAuth: 8,
GitCredential.sshInteractive: 16,
GitCredential.username: 32,
GitCredential.sshMemory: 64,
};
final actual = {for (final e in GitCredential.values) e: e.value};
expect(actual, expected);
});
test('GitFeature returns correct values', () {
const expected = {
GitFeature.threads: 1,
GitFeature.https: 2,
GitFeature.ssh: 4,
GitFeature.nsec: 8,
};
final actual = {for (final e in GitFeature.values) e: e.value};
expect(actual, expected);
});
test('GitAttributeCheck returns correct values', () {
const expected = {
GitAttributeCheck.fileThenIndex: 0,
GitAttributeCheck.indexThenFile: 1,
GitAttributeCheck.indexOnly: 2,
GitAttributeCheck.noSystem: 4,
GitAttributeCheck.includeHead: 8,
GitAttributeCheck.includeCommit: 16,
};
final actual = {for (final e in GitAttributeCheck.values) e: e.value};
expect(actual, expected);
});
test('GitBlameFlag returns correct values', () {
const expected = {
GitBlameFlag.normal: 0,
GitBlameFlag.trackCopiesSameFile: 1,
GitBlameFlag.trackCopiesSameCommitMoves: 2,
GitBlameFlag.trackCopiesSameCommitCopies: 4,
GitBlameFlag.trackCopiesAnyCommitCopies: 8,
GitBlameFlag.firstParent: 16,
GitBlameFlag.useMailmap: 32,
GitBlameFlag.ignoreWhitespace: 64,
};
final actual = {for (final e in GitBlameFlag.values) e: e.value};
expect(actual, expected);
});
test('GitRebaseOperation returns correct values', () {
const expected = {
GitRebaseOperation.pick: 0,
GitRebaseOperation.reword: 1,
GitRebaseOperation.edit: 2,
GitRebaseOperation.squash: 3,
GitRebaseOperation.fixup: 4,
GitRebaseOperation.exec: 5,
};
final actual = {for (final e in GitRebaseOperation.values) e: e.value};
expect(actual, expected);
});
test('GitDescribeStrategy returns correct values', () {
const expected = {
GitDescribeStrategy.defaultStrategy: 0,
GitDescribeStrategy.tags: 1,
GitDescribeStrategy.all: 2,
};
final actual = {for (final e in GitDescribeStrategy.values) e: e.value};
expect(actual, expected);
});
test('GitSubmoduleIgnore returns correct values', () {
const expected = {
GitSubmoduleIgnore.unspecified: -1,
GitSubmoduleIgnore.none: 1,
GitSubmoduleIgnore.untracked: 2,
GitSubmoduleIgnore.dirty: 3,
GitSubmoduleIgnore.all: 4,
};
final actual = {for (final e in GitSubmoduleIgnore.values) e: e.value};
expect(actual, expected);
});
test('GitSubmoduleUpdate returns correct values', () {
const expected = {
GitSubmoduleUpdate.checkout: 1,
GitSubmoduleUpdate.rebase: 2,
GitSubmoduleUpdate.merge: 3,
GitSubmoduleUpdate.none: 4,
};
final actual = {for (final e in GitSubmoduleUpdate.values) e: e.value};
expect(actual, expected);
});
test('GitSubmoduleStatus returns correct values', () {
const expected = {
GitSubmoduleStatus.inHead: 1,
GitSubmoduleStatus.inIndex: 2,
GitSubmoduleStatus.inConfig: 4,
GitSubmoduleStatus.inWorkdir: 8,
GitSubmoduleStatus.indexAdded: 16,
GitSubmoduleStatus.indexDeleted: 32,
GitSubmoduleStatus.indexModified: 64,
GitSubmoduleStatus.workdirUninitialized: 128,
GitSubmoduleStatus.workdirAdded: 256,
GitSubmoduleStatus.workdirDeleted: 512,
GitSubmoduleStatus.workdirModified: 1024,
GitSubmoduleStatus.workdirIndexModified: 2048,
GitSubmoduleStatus.smWorkdirModified: 4096,
GitSubmoduleStatus.workdirUntracked: 8192,
};
final actual = {for (final e in GitSubmoduleStatus.values) e: e.value};
expect(actual, expected);
});
test('GitIndexCapability returns correct values', () {
const expected = {
GitIndexCapability.ignoreCase: 1,
GitIndexCapability.noFileMode: 2,
GitIndexCapability.noSymlinks: 4,
GitIndexCapability.fromOwner: -1,
};
final actual = {for (final e in GitIndexCapability.values) e: e.value};
expect(actual, expected);
});
test('GitBlobFilter returns correct values', () {
const expected = {
GitBlobFilter.checkForBinary: 1,
GitBlobFilter.noSystemAttributes: 2,
GitBlobFilter.attributesFromHead: 4,
GitBlobFilter.attributesFromCommit: 8,
};
final actual = {for (final e in GitBlobFilter.values) e: e.value};
expect(actual, expected);
});
test('GitFilterMode returns correct values', () {
const expected = {GitFilterMode.toWorktree: 0, GitFilterMode.toOdb: 1};
final actual = {for (final e in GitFilterMode.values) e: e.value};
expect(actual, expected);
});
test('GitFilterFlag returns correct values', () {
const expected = {
GitFilterFlag.defaults: 0,
GitFilterFlag.allowUnsafe: 1,
GitFilterFlag.noSystemAttributes: 2,
GitFilterFlag.attributesFromHead: 4,
GitFilterFlag.attributesFromCommit: 8,
};
final actual = {for (final e in GitFilterFlag.values) e: e.value};
expect(actual, expected);
});
});
test('GitIndexAddOption returns correct values', () {
const expected = {
GitIndexAddOption.defaults: 0,
GitIndexAddOption.force: 1,
GitIndexAddOption.disablePathspecMatch: 2,
GitIndexAddOption.checkPathspec: 4,
};
final actual = {for (final e in GitIndexAddOption.values) e: e.value};
expect(actual, expected);
});
test('GitWorktree returns correct values', () {
const expected = {
GitWorktree.pruneValid: 1,
GitWorktree.pruneLocked: 2,
GitWorktree.pruneWorkingTree: 4,
};
final actual = {for (final e in GitWorktree.values) e: e.value};
expect(actual, expected);
});
group('fromValue', () {
void testEnum<T>(String name, T Function(int) fromValue, List<T> values) {
group(name, () {
test('returns enum', () {
for (final v in values) {
expect(fromValue((v as dynamic).value as int), v);
}
});
test('throws ArgumentError for invalid value', () {
final invalid =
values
.map((e) => (e as dynamic).value as int)
.reduce((a, b) => a > b ? a : b) +
1;
expect(() => fromValue(invalid), throwsArgumentError);
});
});
}
testEnum('ReferenceType', ReferenceType.fromValue, ReferenceType.values);
testEnum('GitFilemode', GitFilemode.fromValue, GitFilemode.values);
testEnum('GitSort', GitSort.fromValue, GitSort.values);
testEnum('GitObject', GitObject.fromValue, GitObject.values);
testEnum('GitRevSpec', GitRevSpec.fromValue, GitRevSpec.values);
testEnum('GitBranch', GitBranch.fromValue, GitBranch.values);
testEnum('GitStatus', GitStatus.fromValue, GitStatus.values);
testEnum(
'GitMergeAnalysis',
GitMergeAnalysis.fromValue,
GitMergeAnalysis.values,
);
testEnum(
'GitMergePreference',
GitMergePreference.fromValue,
GitMergePreference.values,
);
testEnum(
'GitRepositoryState',
GitRepositoryState.fromValue,
GitRepositoryState.values,
);
testEnum('GitMergeFlag', GitMergeFlag.fromValue, GitMergeFlag.values);
testEnum(
'GitMergeFileFavor',
GitMergeFileFavor.fromValue,
GitMergeFileFavor.values,
);
testEnum(
'GitMergeFileFlag',
GitMergeFileFlag.fromValue,
GitMergeFileFlag.values,
);
testEnum('GitCheckout', GitCheckout.fromValue, GitCheckout.values);
testEnum('GitReset', GitReset.fromValue, GitReset.values);
testEnum('GitDiff', GitDiff.fromValue, GitDiff.values);
testEnum('GitDelta', GitDelta.fromValue, GitDelta.values);
testEnum('GitDiffFlag', GitDiffFlag.fromValue, GitDiffFlag.values);
testEnum('GitDiffStats', GitDiffStats.fromValue, GitDiffStats.values);
testEnum('GitDiffFind', GitDiffFind.fromValue, GitDiffFind.values);
testEnum('GitDiffLine', GitDiffLine.fromValue, GitDiffLine.values);
testEnum('GitConfigLevel', GitConfigLevel.fromValue, GitConfigLevel.values);
testEnum('GitStash', GitStash.fromValue, GitStash.values);
testEnum('GitStashApply', GitStashApply.fromValue, GitStashApply.values);
testEnum('GitDirection', GitDirection.fromValue, GitDirection.values);
testEnum('GitFetchPrune', GitFetchPrune.fromValue, GitFetchPrune.values);
testEnum(
'GitRepositoryInit',
GitRepositoryInit.fromValue,
GitRepositoryInit.values,
);
testEnum('GitCredential', GitCredential.fromValue, GitCredential.values);
testEnum('GitFeature', GitFeature.fromValue, GitFeature.values);
testEnum(
'GitAttributeCheck',
GitAttributeCheck.fromValue,
GitAttributeCheck.values,
);
testEnum('GitBlameFlag', GitBlameFlag.fromValue, GitBlameFlag.values);
testEnum(
'GitRebaseOperation',
GitRebaseOperation.fromValue,
GitRebaseOperation.values,
);
testEnum(
'GitDescribeStrategy',
GitDescribeStrategy.fromValue,
GitDescribeStrategy.values,
);
testEnum(
'GitSubmoduleIgnore',
GitSubmoduleIgnore.fromValue,
GitSubmoduleIgnore.values,
);
testEnum(
'GitSubmoduleUpdate',
GitSubmoduleUpdate.fromValue,
GitSubmoduleUpdate.values,
);
testEnum(
'GitSubmoduleStatus',
GitSubmoduleStatus.fromValue,
GitSubmoduleStatus.values,
);
testEnum(
'GitIndexCapability',
GitIndexCapability.fromValue,
GitIndexCapability.values,
);
testEnum('GitBlobFilter', GitBlobFilter.fromValue, GitBlobFilter.values);
testEnum(
'GitIndexAddOption',
GitIndexAddOption.fromValue,
GitIndexAddOption.values,
);
testEnum('GitWorktree', GitWorktree.fromValue, GitWorktree.values);
});
}