@@ -9,8 +9,6 @@ import {BaseERC721CheckerFactory} from "./base/BaseERC721CheckerFactory.sol";
9
9
import {AdvancedERC721CheckerFactory} from "./advanced/AdvancedERC721CheckerFactory.sol " ;
10
10
import {AdvancedERC721Policy} from "./advanced/AdvancedERC721Policy.sol " ;
11
11
import {AdvancedERC721PolicyFactory} from "./advanced/AdvancedERC721PolicyFactory.sol " ;
12
- import {BaseERC721Policy} from "./base/BaseERC721Policy.sol " ;
13
- import {BaseVoting} from "./base/BaseVoting.sol " ;
14
12
import {AdvancedVoting} from "./advanced/AdvancedVoting.sol " ;
15
13
import {IPolicy} from "../core/interfaces/IPolicy.sol " ;
16
14
import {IERC721Errors } from "@openzeppelin/contracts/interfaces/draft-IERC6093.sol " ;
@@ -235,11 +233,11 @@ contract AdvancedPolicy is Test {
235
233
);
236
234
}
237
235
238
- function test_trait_returnsCorrectValue () public view {
236
+ function test_policy_trait_returnsCorrectValue () public view {
239
237
assertEq (policy.trait (), "AdvancedERC721 " );
240
238
}
241
239
242
- function test_setTarget_whenCallerNotOwner_reverts () public {
240
+ function test_policy_setTarget_whenCallerNotOwner_reverts () public {
243
241
vm.startPrank (notOwner);
244
242
245
243
vm.expectRevert (abi.encodeWithSelector (Ownable.OwnableUnauthorizedAccount.selector , notOwner));
@@ -248,7 +246,7 @@ contract AdvancedPolicy is Test {
248
246
vm.stopPrank ();
249
247
}
250
248
251
- function test_setTarget_whenZeroAddress_reverts () public {
249
+ function test_policy_setTarget_whenZeroAddress_reverts () public {
252
250
vm.startPrank (deployer);
253
251
254
252
vm.expectRevert (abi.encodeWithSelector (IPolicy.ZeroAddress.selector ));
@@ -257,7 +255,7 @@ contract AdvancedPolicy is Test {
257
255
vm.stopPrank ();
258
256
}
259
257
260
- function test_setTarget_whenValid_succeeds () public {
258
+ function test_policy_setTarget_whenValid_succeeds () public {
261
259
vm.startPrank (deployer);
262
260
263
261
vm.expectEmit (true , true , true , true );
@@ -268,7 +266,7 @@ contract AdvancedPolicy is Test {
268
266
vm.stopPrank ();
269
267
}
270
268
271
- function test_setTarget_whenAlreadySet_reverts () public {
269
+ function test_policy_setTarget_whenAlreadySet_reverts () public {
272
270
vm.startPrank (deployer);
273
271
274
272
policy.setTarget (target);
@@ -279,7 +277,7 @@ contract AdvancedPolicy is Test {
279
277
vm.stopPrank ();
280
278
}
281
279
282
- function test_enforcePre_whenCallerNotTarget_reverts () public {
280
+ function test_policy_enforcePre_whenCallerNotTarget_reverts () public {
283
281
vm.startPrank (deployer);
284
282
285
283
policy.setTarget (target);
@@ -294,7 +292,7 @@ contract AdvancedPolicy is Test {
294
292
vm.stopPrank ();
295
293
}
296
294
297
- function test_enforcePre_whenTokenDoesNotExist_reverts () public {
295
+ function test_policy_enforcePre_whenTokenDoesNotExist_reverts () public {
298
296
vm.startPrank (deployer);
299
297
300
298
policy.setTarget (target);
@@ -309,7 +307,7 @@ contract AdvancedPolicy is Test {
309
307
vm.stopPrank ();
310
308
}
311
309
312
- function test_enforcePre_whenChecksSkipped_reverts () public {
310
+ function test_policy_enforcePre_whenChecksSkipped_reverts () public {
313
311
vm.startPrank (deployer);
314
312
315
313
policySkipped.setTarget (target);
@@ -325,7 +323,7 @@ contract AdvancedPolicy is Test {
325
323
vm.stopPrank ();
326
324
}
327
325
328
- function test_enforcePre_whenCheckFails_reverts () public {
326
+ function test_policy_enforcePre_whenCheckFails_reverts () public {
329
327
vm.startPrank (deployer);
330
328
331
329
policy.setTarget (target);
@@ -341,7 +339,7 @@ contract AdvancedPolicy is Test {
341
339
vm.stopPrank ();
342
340
}
343
341
344
- function test_enforcePre_whenValid_succeeds () public {
342
+ function test_policy_enforcePre_whenValid_succeeds () public {
345
343
vm.startPrank (deployer);
346
344
347
345
policy.setTarget (target);
@@ -359,7 +357,7 @@ contract AdvancedPolicy is Test {
359
357
vm.stopPrank ();
360
358
}
361
359
362
- function test_enforcePre_whenAlreadyEnforced_reverts () public {
360
+ function test_policy_enforcePre_whenAlreadyEnforced_reverts () public {
363
361
vm.startPrank (deployer);
364
362
365
363
policy.setTarget (target);
@@ -377,7 +375,7 @@ contract AdvancedPolicy is Test {
377
375
vm.stopPrank ();
378
376
}
379
377
380
- function test_enforceMain_whenCallerNotTarget_reverts () public {
378
+ function test_policy_enforceMain_whenCallerNotTarget_reverts () public {
381
379
vm.startPrank (deployer);
382
380
383
381
policy.setTarget (target);
@@ -392,7 +390,7 @@ contract AdvancedPolicy is Test {
392
390
vm.stopPrank ();
393
391
}
394
392
395
- function test_enforceMain_whenCheckFails_reverts () public {
393
+ function test_policy_enforceMain_whenCheckFails_reverts () public {
396
394
vm.startPrank (deployer);
397
395
398
396
policy.setTarget (target);
@@ -420,7 +418,7 @@ contract AdvancedPolicy is Test {
420
418
vm.stopPrank ();
421
419
}
422
420
423
- function test_enforceMain_whenPreCheckMissing_reverts () public {
421
+ function test_policy_enforceMain_whenPreCheckMissing_reverts () public {
424
422
vm.startPrank (deployer);
425
423
426
424
policy.setTarget (target);
@@ -436,7 +434,7 @@ contract AdvancedPolicy is Test {
436
434
vm.stopPrank ();
437
435
}
438
436
439
- function test_enforceMain_whenValid_succeeds () public {
437
+ function test_policy_enforceMain_whenValid_succeeds () public {
440
438
vm.startPrank (deployer);
441
439
442
440
policy.setTarget (target);
@@ -456,7 +454,7 @@ contract AdvancedPolicy is Test {
456
454
vm.stopPrank ();
457
455
}
458
456
459
- function test_enforceMain_whenMultipleValid_succeeds () public {
457
+ function test_policy_enforceMain_whenMultipleValid_succeeds () public {
460
458
vm.startPrank (deployer);
461
459
462
460
policy.setTarget (target);
@@ -481,7 +479,7 @@ contract AdvancedPolicy is Test {
481
479
vm.stopPrank ();
482
480
}
483
481
484
- function test_enforceMain_whenMultipleNotAllowed_reverts () public {
482
+ function test_policy_enforceMain_whenMultipleNotAllowed_reverts () public {
485
483
vm.startPrank (deployer);
486
484
487
485
policySkipped.setTarget (target);
@@ -499,7 +497,7 @@ contract AdvancedPolicy is Test {
499
497
vm.stopPrank ();
500
498
}
501
499
502
- function test_enforcePost_whenPreCheckMissing_reverts () public {
500
+ function test_policy_enforcePost_whenPreCheckMissing_reverts () public {
503
501
vm.startPrank (deployer);
504
502
505
503
policy.setTarget (target);
@@ -516,7 +514,7 @@ contract AdvancedPolicy is Test {
516
514
vm.stopPrank ();
517
515
}
518
516
519
- function test_enforcePost_whenCallerNotTarget_reverts () public {
517
+ function test_policy_enforcePost_whenCallerNotTarget_reverts () public {
520
518
vm.startPrank (deployer);
521
519
522
520
policy.setTarget (target);
@@ -531,7 +529,7 @@ contract AdvancedPolicy is Test {
531
529
vm.stopPrank ();
532
530
}
533
531
534
- function test_enforcePost_whenChecksSkipped_reverts () public {
532
+ function test_policy_enforcePost_whenChecksSkipped_reverts () public {
535
533
vm.startPrank (deployer);
536
534
537
535
policySkipped.setTarget (target);
@@ -549,7 +547,7 @@ contract AdvancedPolicy is Test {
549
547
vm.stopPrank ();
550
548
}
551
549
552
- function test_enforcePost_whenCheckFails_reverts () public {
550
+ function test_policy_enforcePost_whenCheckFails_reverts () public {
553
551
vm.startPrank (deployer);
554
552
555
553
policy.setTarget (target);
@@ -570,7 +568,7 @@ contract AdvancedPolicy is Test {
570
568
vm.stopPrank ();
571
569
}
572
570
573
- function test_enforcePost_whenValid_succeeds () public {
571
+ function test_policy_enforcePost_whenValid_succeeds () public {
574
572
vm.startPrank (deployer);
575
573
576
574
policy.setTarget (target);
@@ -591,7 +589,7 @@ contract AdvancedPolicy is Test {
591
589
vm.stopPrank ();
592
590
}
593
591
594
- function test_enforcePost_whenAlreadyEnforced_reverts () public {
592
+ function test_policy_enforcePost_whenAlreadyEnforced_reverts () public {
595
593
vm.startPrank (deployer);
596
594
597
595
policy.setTarget (target);
0 commit comments