This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/hmac" | |
| "crypto/sha256" | |
| "encoding/base64" | |
| "encoding/hex" | |
| "fmt" | |
| "strings" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Foo { | |
| public int constInstr() { | |
| return 0; | |
| } | |
| public int add(int a, int b) { | |
| int c; | |
| c = a + this.constInstr(); | |
| return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:meta/meta.dart'; | |
| import 'package:test/test.dart'; | |
| // ignore: depend_on_referenced_packages | |
| import 'package:test_api/src/backend/invoker.dart'; | |
| // Input: | |
| const String requestedTest = 'testA'; | |
| // Global state: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter_test/flutter_test.dart'; | |
| import 'package:patrol/src/extensions.dart'; | |
| // ignore: depend_on_referenced_packages | |
| import 'package:test_api/src/backend/invoker.dart'; | |
| const String requestedTest = 'groupA testA'; | |
| String get currentTest => Invoker.current!.fullCurrentTestName(); | |
| void main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PatrolTester $; | |
| $.native.grantPermissionWhenInUse() | |
| $.native.grantPermissionOnlyThisTime(); | |
| $.native.denyPermission(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class DartTestGroup { | |
| String name = ''; | |
| List<DartTestCase> tests = []; | |
| List<DartTestGroup> groups = []; | |
| DartTestGroup({ | |
| required this.name, | |
| this.tests = const [], | |
| this.groups = const [], | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| testWidgets('signs up', (WidgetTester tester) async { | |
| await tester.pumpWidget(ExampleApp()); | |
| await tester.pumpAndSettle(); | |
| await tester.enterText( | |
| find.byKey(Key('emailTextField')), | |
| 'charlie@root.me', | |
| ); | |
| await tester.pumpAndSettle(); | |
| await tester.enterText( | |
| find.byKey(Key('nameTextField')), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "paddingVertical": "0px", | |
| "paddingHorizontal": "0px", | |
| "backgroundImage": null, | |
| "backgroundImageSelection": null, | |
| "backgroundMode": "color", | |
| "backgroundColor": "rgba(171, 184, 195, 1)", | |
| "dropShadow": false, | |
| "dropShadowOffsetY": "20px", | |
| "dropShadowBlurRadius": "68px", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ignore_for_file: invalid_use_of_internal_member, | |
| // depend_on_referenced_packages, directives_ordering | |
| import 'dart:async'; | |
| import 'package:flutter_test/flutter_test.dart'; | |
| import 'package:patrol/patrol.dart'; | |
| import 'package:patrol/src/native/contracts/contracts.pbgrpc.dart'; | |
| import 'package:test_api/src/backend/invoker.dart'; |