File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:flutter_policy_engine/flutter_policy_engine.dart' ;
2
2
import 'package:flutter_test/flutter_test.dart' ;
3
- import 'package:flutter_policy_engine/src/core/policy_manager.dart' ;
4
3
import 'package:flutter_policy_engine/src/core/memory_policy_storage.dart' ;
5
4
import 'package:flutter_policy_engine/src/core/role_evaluator.dart' ;
6
- import 'package:flutter_policy_engine/src/exceptions/policy_sdk_exception.dart' ;
7
5
8
6
void main () {
9
7
group ('Core Integration Tests' , () {
Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ class TestConsumerWidget extends StatelessWidget {
55
55
Builder (
56
56
builder: (context) {
57
57
try {
58
- final policyManager = PolicyProvider .policyManagerOf (context);
59
- return Text ('manager_found: ${ policyManager != null } ' );
58
+ final _ = PolicyProvider .policyManagerOf (context);
59
+ return const Text ('manager_found: true ' );
60
60
} catch (e) {
61
61
return Text ('error: ${e .toString ()}' );
62
62
}
@@ -388,7 +388,7 @@ void main() {
388
388
PolicyProvider (
389
389
policyManager: policyManager,
390
390
child: const Column (
391
- children: const [
391
+ children: [
392
392
TestConsumerWidget (),
393
393
TestConsumerWidget (),
394
394
RebuildTestWidget (),
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ void main() {
94
94
const message = 'Failed to load policy configuration' ;
95
95
96
96
// Test with FormatException
97
- final formatError = FormatException ('Invalid format' );
97
+ const formatError = FormatException ('Invalid format' );
98
98
final exceptionWithFormatError = PolicySDKException (
99
99
message,
100
100
exception: formatError,
You can’t perform that action at this time.
0 commit comments