Add files using upload-large-folder tool
Browse files- benchmark/IOL/ioling_hf/reports/ioling_hint_diversity/Qwen_Qwen3-4B-Instruct-2507__qwen3_4b_trainval_hints_groot_4k.json +0 -0
- benchmark/IOL/ioling_hf/reports/ioling_hint_diversity/Qwen_Qwen3-4B-Instruct-2507__qwen3_4b_trainval_hints_groot_4k.md +126 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/NUnitExtension.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/RequireApiProfileAttribute.cs +32 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/RequireApiProfileAttribute.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/RequirePlatformSupportAttribute.cs +33 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/RequirePlatformSupportAttribute.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestBuildAssemblyFilter.cs +22 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestBuildAssemblyFilter.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestLaunchers.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestResultSerializer.cs +80 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestResultSerializer.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestRun.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestRunner.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestRunnerWindow.cs +266 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestRunnerWindow.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestRunnerWindowSettings.cs +26 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestRunnerWindowSettings.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestSettings.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/UnityEditor.TestRunner.asmdef +21 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/UnityEditor.TestRunner.asmdef.meta +7 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/UnityTestProtocol.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/AssemblyInfo.cs +16 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/AssemblyInfo.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/AllocatingGCMemoryConstraint.cs +128 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/AllocatingGCMemoryConstraint.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/ConstraintsExtensions.cs +14 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/ConstraintsExtensions.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/InvalidSignatureException.cs +18 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/InvalidSignatureException.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/Is.cs +10 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/Is.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/LogAssert.cs +78 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/LogAssert.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/LogScope.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/UnexpectedLogMessageException.cs +29 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/UnexpectedLogMessageException.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/UnhandledLogMessageException.cs +35 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/UnhandledLogMessageException.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/UnityTestTimeoutException.cs +28 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/UnityTestTimeoutException.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/NUnitExtensions.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/NUnitExtensions/ActionDelegator.cs +79 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/NUnitExtensions/ActionDelegator.cs.meta +11 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/NUnitExtensions/Attributes.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/TestRunner.meta +8 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/UnityEngine.TestRunner.asmdef +13 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/UnityEngine.TestRunner.asmdef.meta +7 -0
- benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Utils.meta +8 -0
benchmark/IOL/ioling_hf/reports/ioling_hint_diversity/Qwen_Qwen3-4B-Instruct-2507__qwen3_4b_trainval_hints_groot_4k.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
benchmark/IOL/ioling_hf/reports/ioling_hint_diversity/Qwen_Qwen3-4B-Instruct-2507__qwen3_4b_trainval_hints_groot_4k.md
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# IOLing Hint Diversity Probe
|
| 2 |
+
|
| 3 |
+
- generated: `2026-07-10T23:20:51.241026+00:00`
|
| 4 |
+
- model: `Qwen/Qwen3-4B-Instruct-2507`
|
| 5 |
+
- samples: `375`
|
| 6 |
+
- positive samples: `9`
|
| 7 |
+
- exact samples: `3`
|
| 8 |
+
|
| 9 |
+
## Method Summary
|
| 10 |
+
|
| 11 |
+
| split | method | records | samples | records + | records exact | sample + | sample exact | mean best | format | unique boxes |
|
| 12 |
+
| --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 13 |
+
| train | anti_nearmiss | 9 | 36 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.056 | 3 |
|
| 14 |
+
| train | groot_1x4 | 9 | 36 | 2 | 0 | 0.083 | 0.000 | 0.056 | 0.278 | 11 |
|
| 15 |
+
| train | groot_anchor_iid | 9 | 9 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.111 | 2 |
|
| 16 |
+
| train | iid | 9 | 36 | 1 | 0 | 0.028 | 0.000 | 0.037 | 0.139 | 7 |
|
| 17 |
+
| train | redacted_solution_hint_mask0 | 1 | 4 | 1 | 1 | 1.000 | 0.750 | 1.000 | 1.000 | 2 |
|
| 18 |
+
| train | redacted_solution_hint_mask1 | 2 | 8 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.125 | 2 |
|
| 19 |
+
| train | redacted_solution_hint_mask3 | 1 | 4 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.000 | 1 |
|
| 20 |
+
| train | redacted_solution_hint_mask4 | 1 | 4 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.000 | 1 |
|
| 21 |
+
| train | redacted_solution_hint_mask5 | 2 | 8 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.250 | 3 |
|
| 22 |
+
| train | redacted_solution_hint_mask6 | 2 | 8 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.000 | 1 |
|
| 23 |
+
| train | solver_checklist | 9 | 36 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.139 | 6 |
|
| 24 |
+
| train | unit_audit | 9 | 36 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.222 | 9 |
|
| 25 |
+
| val | anti_nearmiss | 6 | 24 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.042 | 2 |
|
| 26 |
+
| val | groot_1x4 | 6 | 24 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.083 | 3 |
|
| 27 |
+
| val | groot_anchor_iid | 6 | 6 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.000 | 1 |
|
| 28 |
+
| val | iid | 6 | 24 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.042 | 2 |
|
| 29 |
+
| val | redacted_solution_hint_mask2 | 2 | 8 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.125 | 2 |
|
| 30 |
+
| val | redacted_solution_hint_mask4 | 1 | 4 | 1 | 0 | 0.250 | 0.000 | 0.200 | 0.250 | 2 |
|
| 31 |
+
| val | redacted_solution_hint_mask5 | 3 | 12 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.000 | 1 |
|
| 32 |
+
| val | solver_checklist | 6 | 24 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.083 | 3 |
|
| 33 |
+
| val | unit_audit | 6 | 24 | 0 | 0 | 0.000 | 0.000 | 0.000 | 0.042 | 2 |
|
| 34 |
+
|
| 35 |
+
## Positive Samples
|
| 36 |
+
|
| 37 |
+
### `train` `iol-2011-individual-p1-sub-b` `redacted_solution_hint_mask0` sample `0`
|
| 38 |
+
|
| 39 |
+
- score: `1.0`
|
| 40 |
+
- matched: `b.1, b.2, b.3, b.4`
|
| 41 |
+
- missed: ``
|
| 42 |
+
|
| 43 |
+
```text
|
| 44 |
+
b.1: new¯æpahtan; b.2: kek¯awenæq; b.3: taw¯anæhkæw; b.4: ket¯ohnæw
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
### `train` `iol-2011-individual-p1-sub-b` `redacted_solution_hint_mask0` sample `2`
|
| 48 |
+
|
| 49 |
+
- score: `1.0`
|
| 50 |
+
- matched: `b.1, b.2, b.3, b.4`
|
| 51 |
+
- missed: ``
|
| 52 |
+
|
| 53 |
+
```text
|
| 54 |
+
b.1: new¯æpahtan; b.2: kek¯awenæq; b.3: taw¯anæhkæw; b.4: ket¯ohnæw
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
### `train` `iol-2011-individual-p1-sub-b` `redacted_solution_hint_mask0` sample `3`
|
| 58 |
+
|
| 59 |
+
- score: `1.0`
|
| 60 |
+
- matched: `b.1, b.2, b.3, b.4`
|
| 61 |
+
- missed: ``
|
| 62 |
+
|
| 63 |
+
```text
|
| 64 |
+
b.1: new¯æpahtan; b.2: kek¯awenæq; b.3: taw¯anæhkæw; b.4: ket¯ohnæw
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
### `train` `iol-2011-individual-p1-sub-b` `redacted_solution_hint_mask0` sample `1`
|
| 68 |
+
|
| 69 |
+
- score: `0.75`
|
| 70 |
+
- matched: `b.1, b.2, b.4`
|
| 71 |
+
- missed: `b.3`
|
| 72 |
+
|
| 73 |
+
```text
|
| 74 |
+
b.1: new¯æpahtan; b.2: kek¯awenæq; b.3: k¯anæhkæ; b.4: ket¯ohnæw
|
| 75 |
+
```
|
| 76 |
+
|
| 77 |
+
### `train` `iol-2016-individual-p5-sub-a` `groot_1x4` sample `0`
|
| 78 |
+
|
| 79 |
+
- score: `0.3333333333333333`
|
| 80 |
+
- matched: `a.1`
|
| 81 |
+
- missed: `a.2, a.3`
|
| 82 |
+
|
| 83 |
+
```text
|
| 84 |
+
a.1: is it in my house; a.2: the field too; a.3: the field too
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
### `train` `iol-2016-individual-p5-sub-a` `groot_1x4` sample `2`
|
| 88 |
+
|
| 89 |
+
- score: `0.3333333333333333`
|
| 90 |
+
- matched: `a.1`
|
| 91 |
+
- missed: `a.2, a.3`
|
| 92 |
+
|
| 93 |
+
```text
|
| 94 |
+
a.1: is it in my house?; a.2: the field too; a.3: the field too
|
| 95 |
+
```
|
| 96 |
+
|
| 97 |
+
### `train` `iol-2016-individual-p5-sub-a` `iid` sample `0`
|
| 98 |
+
|
| 99 |
+
- score: `0.3333333333333333`
|
| 100 |
+
- matched: `a.1`
|
| 101 |
+
- missed: `a.2, a.3`
|
| 102 |
+
|
| 103 |
+
```text
|
| 104 |
+
a.1: is it in my house?; a.2: the field too; a.3: the field too
|
| 105 |
+
```
|
| 106 |
+
|
| 107 |
+
### `val` `iol-2021-individual-p3-sub-a` `redacted_solution_hint_mask4` sample `3`
|
| 108 |
+
|
| 109 |
+
- score: `0.2`
|
| 110 |
+
- matched: `a.4`
|
| 111 |
+
- missed: `a.1, a.2, a.3, a.5`
|
| 112 |
+
|
| 113 |
+
```text
|
| 114 |
+
a.1: How many things will this man catch?; a.2: Two things will eat these fish.; a.3: Which child is this?; a.4: How many men will see the wild children?; How many men will the wild children see?; a.5: That man saw those things.
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
### `train` `iol-2008-individual-p5-sub-a` `groot_1x4` sample `0`
|
| 118 |
+
|
| 119 |
+
- score: `0.16666666666666666`
|
| 120 |
+
- matched: `a.5`
|
| 121 |
+
- missed: `a.1, a.2, a.3, a.4, a.6`
|
| 122 |
+
|
| 123 |
+
```text
|
| 124 |
+
a.1: The hunter came and saw; a.2: Your boy hurt you; a.3: The hunter cured; a.4: The dog hurt and shot; a.5: You came; a.6: The hunter cured a polar bear
|
| 125 |
+
```
|
| 126 |
+
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/NUnitExtension.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 3f9202a39620f51418046c7754f215f0
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/RequireApiProfileAttribute.cs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System;
|
| 2 |
+
using System.Linq;
|
| 3 |
+
using NUnit.Framework;
|
| 4 |
+
using NUnit.Framework.Interfaces;
|
| 5 |
+
using NUnit.Framework.Internal;
|
| 6 |
+
|
| 7 |
+
namespace UnityEditor.TestTools
|
| 8 |
+
{
|
| 9 |
+
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
|
| 10 |
+
internal class RequireApiProfileAttribute : NUnitAttribute, IApplyToTest
|
| 11 |
+
{
|
| 12 |
+
public ApiCompatibilityLevel[] apiProfiles { get; private set; }
|
| 13 |
+
|
| 14 |
+
public RequireApiProfileAttribute(params ApiCompatibilityLevel[] apiProfiles)
|
| 15 |
+
{
|
| 16 |
+
this.apiProfiles = apiProfiles;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
void IApplyToTest.ApplyToTest(Test test)
|
| 20 |
+
{
|
| 21 |
+
test.Properties.Add(PropertyNames.Category, string.Format("ApiProfile({0})", string.Join(", ", apiProfiles.Select(p => p.ToString()).OrderBy(p => p).ToArray())));
|
| 22 |
+
ApiCompatibilityLevel testProfile = PlayerSettings.GetApiCompatibilityLevel(EditorUserBuildSettings.activeBuildTargetGroup);
|
| 23 |
+
|
| 24 |
+
if (!apiProfiles.Contains(testProfile))
|
| 25 |
+
{
|
| 26 |
+
string skipReason = "Skipping test as it requires a compatible api profile set: " + string.Join(", ", apiProfiles.Select(p => p.ToString()).ToArray());
|
| 27 |
+
test.RunState = RunState.Skipped;
|
| 28 |
+
test.Properties.Add(PropertyNames.SkipReason, skipReason);
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/RequireApiProfileAttribute.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: a667f6654ad7a9548b8c8e68b51c8895
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/RequirePlatformSupportAttribute.cs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System;
|
| 2 |
+
using System.Linq;
|
| 3 |
+
using NUnit.Framework;
|
| 4 |
+
using NUnit.Framework.Interfaces;
|
| 5 |
+
using NUnit.Framework.Internal;
|
| 6 |
+
|
| 7 |
+
namespace UnityEditor.TestTools
|
| 8 |
+
{
|
| 9 |
+
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Method)]
|
| 10 |
+
public class RequirePlatformSupportAttribute : NUnitAttribute, IApplyToTest
|
| 11 |
+
{
|
| 12 |
+
public RequirePlatformSupportAttribute(params BuildTarget[] platforms)
|
| 13 |
+
{
|
| 14 |
+
this.platforms = platforms;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
public BuildTarget[] platforms { get; private set; }
|
| 18 |
+
|
| 19 |
+
void IApplyToTest.ApplyToTest(Test test)
|
| 20 |
+
{
|
| 21 |
+
test.Properties.Add(PropertyNames.Category, string.Format("RequirePlatformSupport({0})", string.Join(", ", platforms.Select(p => p.ToString()).OrderBy(p => p).ToArray())));
|
| 22 |
+
|
| 23 |
+
if (!platforms.All(p => BuildPipeline.IsBuildTargetSupported(BuildTargetGroup.Unknown, p)))
|
| 24 |
+
{
|
| 25 |
+
var missingPlatforms = platforms.Where(p => !BuildPipeline.IsBuildTargetSupported(BuildTargetGroup.Unknown, p)).Select(p => p.ToString()).ToArray();
|
| 26 |
+
string skipReason = "Test cannot be run as it requires support for the following platforms to be installed: " + string.Join(", ", missingPlatforms);
|
| 27 |
+
|
| 28 |
+
test.RunState = RunState.Skipped;
|
| 29 |
+
test.Properties.Add(PropertyNames.SkipReason, skipReason);
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/RequirePlatformSupportAttribute.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: d2146428d3f1ad54eb7326c9a44b3284
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestBuildAssemblyFilter.cs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System.Linq;
|
| 2 |
+
using UnityEditor.Build;
|
| 3 |
+
|
| 4 |
+
namespace UnityEditor.TestRunner
|
| 5 |
+
{
|
| 6 |
+
// This class is invoked from native, during build
|
| 7 |
+
internal class TestBuildAssemblyFilter : IFilterBuildAssemblies
|
| 8 |
+
{
|
| 9 |
+
private const string nunitAssemblyName = "nunit.framework";
|
| 10 |
+
private const string unityTestRunnerAssemblyName = "UnityEngine.TestRunner";
|
| 11 |
+
|
| 12 |
+
public int callbackOrder { get; }
|
| 13 |
+
public string[] OnFilterAssemblies(BuildOptions buildOptions, string[] assemblies)
|
| 14 |
+
{
|
| 15 |
+
if ((buildOptions & BuildOptions.IncludeTestAssemblies) == BuildOptions.IncludeTestAssemblies || PlayerSettings.playModeTestRunnerEnabled)
|
| 16 |
+
{
|
| 17 |
+
return assemblies;
|
| 18 |
+
}
|
| 19 |
+
return assemblies.Where(x => !x.Contains(nunitAssemblyName) && !x.Contains(unityTestRunnerAssemblyName)).ToArray();
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestBuildAssemblyFilter.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 3411e19edd44cfd46b548b058c3bc36c
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestLaunchers.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: d64d92e4f04a13e4b99ea8d48e9e8ae9
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestResultSerializer.cs
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System;
|
| 2 |
+
using System.Reflection;
|
| 3 |
+
using System.Text;
|
| 4 |
+
using NUnit.Framework.Interfaces;
|
| 5 |
+
using NUnit.Framework.Internal;
|
| 6 |
+
using UnityEngine;
|
| 7 |
+
using UnityEngine.TestRunner.NUnitExtensions;
|
| 8 |
+
|
| 9 |
+
namespace UnityEditor.TestTools.TestRunner
|
| 10 |
+
{
|
| 11 |
+
[Serializable]
|
| 12 |
+
internal class TestResultSerializer
|
| 13 |
+
{
|
| 14 |
+
private static readonly BindingFlags flags = BindingFlags.NonPublic | BindingFlags.Public |
|
| 15 |
+
BindingFlags.Instance | BindingFlags.FlattenHierarchy;
|
| 16 |
+
|
| 17 |
+
[SerializeField] public string id;
|
| 18 |
+
|
| 19 |
+
[SerializeField] public string fullName;
|
| 20 |
+
|
| 21 |
+
[SerializeField] private double duration;
|
| 22 |
+
|
| 23 |
+
[SerializeField] private string label;
|
| 24 |
+
|
| 25 |
+
[SerializeField] private string message;
|
| 26 |
+
|
| 27 |
+
[SerializeField] private string output;
|
| 28 |
+
|
| 29 |
+
[SerializeField] private string site;
|
| 30 |
+
|
| 31 |
+
[SerializeField] private string stacktrace;
|
| 32 |
+
|
| 33 |
+
[SerializeField] private double startTimeAO;
|
| 34 |
+
|
| 35 |
+
[SerializeField] private double endTimeAO;
|
| 36 |
+
|
| 37 |
+
[SerializeField] private string status;
|
| 38 |
+
|
| 39 |
+
[SerializeField] public string uniqueName;
|
| 40 |
+
|
| 41 |
+
public static TestResultSerializer MakeFromTestResult(ITestResult result)
|
| 42 |
+
{
|
| 43 |
+
var wrapper = new TestResultSerializer();
|
| 44 |
+
wrapper.id = result.Test.Id;
|
| 45 |
+
wrapper.fullName = result.FullName;
|
| 46 |
+
wrapper.status = result.ResultState.Status.ToString();
|
| 47 |
+
wrapper.label = result.ResultState.Label;
|
| 48 |
+
wrapper.site = result.ResultState.Site.ToString();
|
| 49 |
+
wrapper.output = result.Output;
|
| 50 |
+
wrapper.duration = result.Duration;
|
| 51 |
+
wrapper.stacktrace = result.StackTrace;
|
| 52 |
+
wrapper.message = result.Message;
|
| 53 |
+
wrapper.startTimeAO = result.StartTime.ToOADate();
|
| 54 |
+
wrapper.endTimeAO = result.EndTime.ToOADate();
|
| 55 |
+
wrapper.uniqueName = result.Test.GetUniqueName();
|
| 56 |
+
return wrapper;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
public void RestoreTestResult(TestResult result)
|
| 60 |
+
{
|
| 61 |
+
var resultState = new ResultState((TestStatus)Enum.Parse(typeof(TestStatus), status), label,
|
| 62 |
+
(FailureSite)Enum.Parse(typeof(FailureSite), site));
|
| 63 |
+
var baseType = result.GetType().BaseType;
|
| 64 |
+
baseType.GetField("_resultState", flags).SetValue(result, resultState);
|
| 65 |
+
baseType.GetField("_output", flags).SetValue(result, new StringBuilder(output));
|
| 66 |
+
baseType.GetField("_duration", flags).SetValue(result, duration);
|
| 67 |
+
baseType.GetField("_message", flags).SetValue(result, message);
|
| 68 |
+
baseType.GetField("_stackTrace", flags).SetValue(result, stacktrace);
|
| 69 |
+
baseType.GetProperty("StartTime", flags)
|
| 70 |
+
.SetValue(result, DateTime.FromOADate(startTimeAO), null);
|
| 71 |
+
baseType.GetProperty("EndTime", flags)
|
| 72 |
+
.SetValue(result, DateTime.FromOADate(endTimeAO), null);
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
public bool IsPassed()
|
| 76 |
+
{
|
| 77 |
+
return status == TestStatus.Passed.ToString();
|
| 78 |
+
}
|
| 79 |
+
}
|
| 80 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestResultSerializer.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 559482fe33c79e44882d3a6cedc55fb5
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestRun.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 8721cb2237d4a564a94a51f56243bdac
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestRunner.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 49d4c2ab7ff0f4442af256bad7c9d57c
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestRunnerWindow.cs
ADDED
|
@@ -0,0 +1,266 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System;
|
| 2 |
+
using UnityEditor.Callbacks;
|
| 3 |
+
using UnityEditor.TestTools.TestRunner.Api;
|
| 4 |
+
using UnityEditor.TestTools.TestRunner.GUI;
|
| 5 |
+
using UnityEngine;
|
| 6 |
+
|
| 7 |
+
namespace UnityEditor.TestTools.TestRunner
|
| 8 |
+
{
|
| 9 |
+
/// <summary>
|
| 10 |
+
/// The TestRunnerWindow class is repsonsible for drawing the Test Runner window.
|
| 11 |
+
/// </summary>
|
| 12 |
+
[Serializable]
|
| 13 |
+
public class TestRunnerWindow : EditorWindow, IHasCustomMenu
|
| 14 |
+
{
|
| 15 |
+
internal static class Styles
|
| 16 |
+
{
|
| 17 |
+
public static GUIStyle info;
|
| 18 |
+
public static GUIStyle testList;
|
| 19 |
+
|
| 20 |
+
static Styles()
|
| 21 |
+
{
|
| 22 |
+
info = new GUIStyle(EditorStyles.wordWrappedLabel);
|
| 23 |
+
info.wordWrap = false;
|
| 24 |
+
info.stretchHeight = true;
|
| 25 |
+
info.margin.right = 15;
|
| 26 |
+
|
| 27 |
+
testList = new GUIStyle("CN Box");
|
| 28 |
+
testList.margin.top = 0;
|
| 29 |
+
testList.padding.left = 3;
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
private readonly GUIContent m_GUIHorizontalSplit = EditorGUIUtility.TrTextContent("Horizontal layout");
|
| 34 |
+
private readonly GUIContent m_GUIVerticalSplit = EditorGUIUtility.TrTextContent("Vertical layout");
|
| 35 |
+
private readonly GUIContent m_GUIDisablePlaymodeTestsRunner = EditorGUIUtility.TrTextContent("Disable playmode tests for all assemblies");
|
| 36 |
+
private readonly GUIContent m_GUIRunPlayModeTestAsEditModeTests = EditorGUIUtility.TrTextContent("Run playmode tests as editmode tests");
|
| 37 |
+
|
| 38 |
+
internal static TestRunnerWindow s_Instance;
|
| 39 |
+
private bool m_IsBuilding;
|
| 40 |
+
[NonSerialized]
|
| 41 |
+
private bool m_Enabled;
|
| 42 |
+
internal TestFilterSettings filterSettings;
|
| 43 |
+
|
| 44 |
+
[SerializeField]
|
| 45 |
+
private SplitterState m_Spl = new SplitterState(new float[] { 75, 25 }, new[] { 32, 32 }, null);
|
| 46 |
+
|
| 47 |
+
private TestRunnerWindowSettings m_Settings;
|
| 48 |
+
|
| 49 |
+
private enum TestRunnerMenuLabels
|
| 50 |
+
{
|
| 51 |
+
PlayMode = 0,
|
| 52 |
+
EditMode = 1
|
| 53 |
+
}
|
| 54 |
+
[SerializeField]
|
| 55 |
+
private int m_TestTypeToolbarIndex = (int)TestRunnerMenuLabels.EditMode;
|
| 56 |
+
[SerializeField]
|
| 57 |
+
private PlayModeTestListGUI m_PlayModeTestListGUI;
|
| 58 |
+
[SerializeField]
|
| 59 |
+
private EditModeTestListGUI m_EditModeTestListGUI;
|
| 60 |
+
|
| 61 |
+
internal TestListGUI m_SelectedTestTypes;
|
| 62 |
+
|
| 63 |
+
private ITestRunnerApi m_testRunnerApi;
|
| 64 |
+
|
| 65 |
+
private WindowResultUpdater m_WindowResultUpdater;
|
| 66 |
+
|
| 67 |
+
/// <summary>
|
| 68 |
+
/// Launches the Test Runner window.
|
| 69 |
+
/// </summary>
|
| 70 |
+
[MenuItem("Window/General/Test Runner", false, 201, false)]
|
| 71 |
+
public static void ShowWindow()
|
| 72 |
+
{
|
| 73 |
+
s_Instance = GetWindow<TestRunnerWindow>("Test Runner");
|
| 74 |
+
s_Instance.Show();
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
static TestRunnerWindow()
|
| 78 |
+
{
|
| 79 |
+
InitBackgroundRunners();
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
private static void InitBackgroundRunners()
|
| 83 |
+
{
|
| 84 |
+
EditorApplication.playModeStateChanged -= OnPlayModeStateChanged;
|
| 85 |
+
EditorApplication.playModeStateChanged += OnPlayModeStateChanged;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
[DidReloadScripts]
|
| 89 |
+
private static void CompilationCallback()
|
| 90 |
+
{
|
| 91 |
+
UpdateWindow();
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
private static void OnPlayModeStateChanged(PlayModeStateChange state)
|
| 95 |
+
{
|
| 96 |
+
if (s_Instance && state == PlayModeStateChange.EnteredEditMode && s_Instance.m_SelectedTestTypes.HasTreeData())
|
| 97 |
+
{
|
| 98 |
+
//repaint message details after exit playmode
|
| 99 |
+
s_Instance.m_SelectedTestTypes.TestSelectionCallback(s_Instance.m_SelectedTestTypes.m_TestListState.selectedIDs.ToArray());
|
| 100 |
+
s_Instance.Repaint();
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
internal void OnDestroy()
|
| 105 |
+
{
|
| 106 |
+
EditorApplication.playModeStateChanged -= OnPlayModeStateChanged;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
private void OnEnable()
|
| 110 |
+
{
|
| 111 |
+
s_Instance = this;
|
| 112 |
+
SelectTestListGUI(m_TestTypeToolbarIndex);
|
| 113 |
+
|
| 114 |
+
m_testRunnerApi = ScriptableObject.CreateInstance<TestRunnerApi>();
|
| 115 |
+
m_WindowResultUpdater = new WindowResultUpdater();
|
| 116 |
+
m_testRunnerApi.RegisterCallbacks(m_WindowResultUpdater);
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
private void Enable()
|
| 120 |
+
{
|
| 121 |
+
m_Settings = new TestRunnerWindowSettings("UnityEditor.PlaymodeTestsRunnerWindow");
|
| 122 |
+
filterSettings = new TestFilterSettings("UnityTest.IntegrationTestsRunnerWindow");
|
| 123 |
+
|
| 124 |
+
if (m_SelectedTestTypes == null)
|
| 125 |
+
{
|
| 126 |
+
SelectTestListGUI(m_TestTypeToolbarIndex);
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
StartRetrieveTestList();
|
| 130 |
+
m_SelectedTestTypes.Reload();
|
| 131 |
+
m_Enabled = true;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
private void SelectTestListGUI(int testTypeToolbarIndex)
|
| 135 |
+
{
|
| 136 |
+
if (testTypeToolbarIndex == (int)TestRunnerMenuLabels.PlayMode)
|
| 137 |
+
{
|
| 138 |
+
if (m_PlayModeTestListGUI == null)
|
| 139 |
+
{
|
| 140 |
+
m_PlayModeTestListGUI = new PlayModeTestListGUI();
|
| 141 |
+
}
|
| 142 |
+
m_SelectedTestTypes = m_PlayModeTestListGUI;
|
| 143 |
+
}
|
| 144 |
+
else if (testTypeToolbarIndex == (int)TestRunnerMenuLabels.EditMode)
|
| 145 |
+
{
|
| 146 |
+
if (m_EditModeTestListGUI == null)
|
| 147 |
+
{
|
| 148 |
+
m_EditModeTestListGUI = new EditModeTestListGUI();
|
| 149 |
+
}
|
| 150 |
+
m_SelectedTestTypes = m_EditModeTestListGUI;
|
| 151 |
+
}
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
private void StartRetrieveTestList()
|
| 155 |
+
{
|
| 156 |
+
if (!m_SelectedTestTypes.HasTreeData())
|
| 157 |
+
{
|
| 158 |
+
var listToInit = m_SelectedTestTypes;
|
| 159 |
+
m_testRunnerApi.RetrieveTestList(m_SelectedTestTypes.TestMode, (rootTest) =>
|
| 160 |
+
{
|
| 161 |
+
listToInit.Init(this, rootTest);
|
| 162 |
+
listToInit.Reload();
|
| 163 |
+
});
|
| 164 |
+
}
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
internal void OnGUI()
|
| 168 |
+
{
|
| 169 |
+
if (!m_Enabled)
|
| 170 |
+
{
|
| 171 |
+
Enable();
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
if (BuildPipeline.isBuildingPlayer)
|
| 175 |
+
{
|
| 176 |
+
m_IsBuilding = true;
|
| 177 |
+
}
|
| 178 |
+
else if (m_IsBuilding)
|
| 179 |
+
{
|
| 180 |
+
m_IsBuilding = false;
|
| 181 |
+
Repaint();
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
EditorGUILayout.BeginHorizontal();
|
| 185 |
+
GUILayout.FlexibleSpace();
|
| 186 |
+
var selectedIndex = m_TestTypeToolbarIndex;
|
| 187 |
+
m_TestTypeToolbarIndex = GUILayout.Toolbar(m_TestTypeToolbarIndex, Enum.GetNames(typeof(TestRunnerMenuLabels)), "LargeButton", UnityEngine.GUI.ToolbarButtonSize.FitToContents);
|
| 188 |
+
GUILayout.FlexibleSpace();
|
| 189 |
+
EditorGUILayout.EndHorizontal();
|
| 190 |
+
|
| 191 |
+
if (selectedIndex != m_TestTypeToolbarIndex)
|
| 192 |
+
{
|
| 193 |
+
SelectTestListGUI(m_TestTypeToolbarIndex);
|
| 194 |
+
StartRetrieveTestList();
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
EditorGUILayout.BeginVertical();
|
| 198 |
+
using (new EditorGUI.DisabledScope(EditorApplication.isPlayingOrWillChangePlaymode))
|
| 199 |
+
{
|
| 200 |
+
m_SelectedTestTypes.PrintHeadPanel();
|
| 201 |
+
}
|
| 202 |
+
EditorGUILayout.EndVertical();
|
| 203 |
+
|
| 204 |
+
if (m_Settings.verticalSplit)
|
| 205 |
+
SplitterGUILayout.BeginVerticalSplit(m_Spl);
|
| 206 |
+
else
|
| 207 |
+
SplitterGUILayout.BeginHorizontalSplit(m_Spl);
|
| 208 |
+
|
| 209 |
+
EditorGUILayout.BeginVertical();
|
| 210 |
+
EditorGUILayout.BeginVertical(Styles.testList);
|
| 211 |
+
m_SelectedTestTypes.RenderTestList();
|
| 212 |
+
EditorGUILayout.EndVertical();
|
| 213 |
+
EditorGUILayout.EndVertical();
|
| 214 |
+
|
| 215 |
+
m_SelectedTestTypes.RenderDetails();
|
| 216 |
+
|
| 217 |
+
if (m_Settings.verticalSplit)
|
| 218 |
+
SplitterGUILayout.EndVerticalSplit();
|
| 219 |
+
else
|
| 220 |
+
SplitterGUILayout.EndHorizontalSplit();
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
/// <summary>
|
| 224 |
+
/// Adds additional menu items to the Test Runner window.
|
| 225 |
+
/// </summary>
|
| 226 |
+
/// <param name="menu">The <see cref="GenericMenu"/></param>
|
| 227 |
+
public void AddItemsToMenu(GenericMenu menu)
|
| 228 |
+
{
|
| 229 |
+
menu.AddItem(m_GUIVerticalSplit, m_Settings.verticalSplit, m_Settings.ToggleVerticalSplit);
|
| 230 |
+
menu.AddItem(m_GUIHorizontalSplit, !m_Settings.verticalSplit, m_Settings.ToggleVerticalSplit);
|
| 231 |
+
|
| 232 |
+
menu.AddSeparator(null);
|
| 233 |
+
|
| 234 |
+
if (EditorPrefs.GetBool("InternalMode", false))
|
| 235 |
+
{
|
| 236 |
+
menu.AddItem(m_GUIRunPlayModeTestAsEditModeTests, PlayerSettings.runPlayModeTestAsEditModeTest, () =>
|
| 237 |
+
{
|
| 238 |
+
PlayerSettings.runPlayModeTestAsEditModeTest = !PlayerSettings.runPlayModeTestAsEditModeTest;
|
| 239 |
+
});
|
| 240 |
+
}
|
| 241 |
+
|
| 242 |
+
if (PlayerSettings.playModeTestRunnerEnabled)
|
| 243 |
+
{
|
| 244 |
+
PlayerSettings.playModeTestRunnerEnabled = false;
|
| 245 |
+
EditorUtility.DisplayDialog(m_GUIDisablePlaymodeTestsRunner.text, "You need to restart the editor now", "Ok");
|
| 246 |
+
}
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
internal void RebuildUIFilter()
|
| 250 |
+
{
|
| 251 |
+
if (m_SelectedTestTypes != null && m_SelectedTestTypes.HasTreeData())
|
| 252 |
+
{
|
| 253 |
+
m_SelectedTestTypes.RebuildUIFilter();
|
| 254 |
+
}
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
internal static void UpdateWindow()
|
| 258 |
+
{
|
| 259 |
+
if (s_Instance != null && s_Instance.m_SelectedTestTypes != null)
|
| 260 |
+
{
|
| 261 |
+
s_Instance.m_SelectedTestTypes.Repaint();
|
| 262 |
+
s_Instance.Repaint();
|
| 263 |
+
}
|
| 264 |
+
}
|
| 265 |
+
}
|
| 266 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestRunnerWindow.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 4dfcd3a631f61d248b7cc0b845d40345
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestRunnerWindowSettings.cs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
namespace UnityEditor.TestTools.TestRunner
|
| 2 |
+
{
|
| 3 |
+
internal class TestRunnerWindowSettings
|
| 4 |
+
{
|
| 5 |
+
public bool verticalSplit;
|
| 6 |
+
|
| 7 |
+
private readonly string m_PrefsKey;
|
| 8 |
+
|
| 9 |
+
public TestRunnerWindowSettings(string prefsKey)
|
| 10 |
+
{
|
| 11 |
+
m_PrefsKey = prefsKey;
|
| 12 |
+
verticalSplit = EditorPrefs.GetBool(m_PrefsKey + ".verticalSplit", true);
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
public void ToggleVerticalSplit()
|
| 16 |
+
{
|
| 17 |
+
verticalSplit = !verticalSplit;
|
| 18 |
+
Save();
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
private void Save()
|
| 22 |
+
{
|
| 23 |
+
EditorPrefs.SetBool(m_PrefsKey + ".verticalSplit", verticalSplit);
|
| 24 |
+
}
|
| 25 |
+
}
|
| 26 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestRunnerWindowSettings.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 2b301b727225f1941974d69e61a55620
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/TestSettings.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 95b719082a664ea45bb56759eed1f271
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/UnityEditor.TestRunner.asmdef
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "UnityEditor.TestRunner",
|
| 3 |
+
"references": [
|
| 4 |
+
"UnityEngine.TestRunner"
|
| 5 |
+
],
|
| 6 |
+
"includePlatforms": [
|
| 7 |
+
"Editor"
|
| 8 |
+
],
|
| 9 |
+
"excludePlatforms": [],
|
| 10 |
+
"allowUnsafeCode": false,
|
| 11 |
+
"overrideReferences": true,
|
| 12 |
+
"precompiledReferences": [
|
| 13 |
+
"nunit.framework.dll",
|
| 14 |
+
"Mono.Cecil.dll",
|
| 15 |
+
"Mono.Cecil.Pdb.dll",
|
| 16 |
+
"Mono.Cecil.Mdb.dll",
|
| 17 |
+
"Mono.Cecil.Rocks.dll"
|
| 18 |
+
],
|
| 19 |
+
"autoReferenced": false,
|
| 20 |
+
"defineConstraints": []
|
| 21 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/UnityEditor.TestRunner.asmdef.meta
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 0acc523941302664db1f4e527237feb3
|
| 3 |
+
AssemblyDefinitionImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
userData:
|
| 6 |
+
assetBundleName:
|
| 7 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEditor.TestRunner/UnityTestProtocol.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 936c6340f3468444ebb1785b4c311126
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/AssemblyInfo.cs
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System.Reflection;
|
| 2 |
+
using System.Runtime.CompilerServices;
|
| 3 |
+
|
| 4 |
+
[assembly: AssemblyTitle("UnityEngine.TestRunner")]
|
| 5 |
+
|
| 6 |
+
[assembly: InternalsVisibleTo("UnityEditor.TestRunner")]
|
| 7 |
+
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
|
| 8 |
+
[assembly: InternalsVisibleTo("Unity.PerformanceTesting")]
|
| 9 |
+
[assembly: InternalsVisibleTo("Unity.PerformanceTesting.Editor")]
|
| 10 |
+
[assembly: InternalsVisibleTo("Assembly-CSharp-testable")]
|
| 11 |
+
[assembly: InternalsVisibleTo("Assembly-CSharp-Editor-testable")]
|
| 12 |
+
[assembly: InternalsVisibleTo("UnityEngine.TestRunner.Tests")]
|
| 13 |
+
[assembly: InternalsVisibleTo("UnityEditor.TestRunner.Tests")]
|
| 14 |
+
[assembly: InternalsVisibleTo("Unity.PackageManagerUI.Editor")]
|
| 15 |
+
|
| 16 |
+
[assembly: AssemblyVersion("1.0.0")]
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/AssemblyInfo.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: cc22cc13b69c1094c85e176c008b9ef8
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 1ad55f5ad04d1d045a1f287409c650dd
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/AllocatingGCMemoryConstraint.cs
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System;
|
| 2 |
+
using NUnit.Framework;
|
| 3 |
+
using NUnit.Framework.Constraints;
|
| 4 |
+
using UnityEngine.Profiling;
|
| 5 |
+
|
| 6 |
+
namespace UnityEngine.TestTools.Constraints
|
| 7 |
+
{
|
| 8 |
+
/// <summary>
|
| 9 |
+
/// An NUnit test constraint class to test whether a given block of code makes any GC allocations.
|
| 10 |
+
///
|
| 11 |
+
/// Use this class with NUnit's Assert.That() method to make assertions about the GC behaviour of your code. The constraint executes the delegate you provide, and checks if it has caused any GC memory to be allocated. If any GC memory was allocated, the constraint passes; otherwise, the constraint fails.
|
| 12 |
+
///
|
| 13 |
+
/// Usually you negate this constraint to make sure that your delegate does not allocate any GC memory. This is easy to do using the Is class:
|
| 14 |
+
/// </summary>
|
| 15 |
+
/// <example>
|
| 16 |
+
/// <code>
|
| 17 |
+
/// using NUnit.Framework;
|
| 18 |
+
/// using UnityEngine.TestTools.Constraints;
|
| 19 |
+
/// using Is = UnityEngine.TestTools.Constraints.Is;
|
| 20 |
+
///
|
| 21 |
+
/// public class MyTestClass
|
| 22 |
+
/// {
|
| 23 |
+
/// [Test]
|
| 24 |
+
/// public void SettingAVariableDoesNotAllocate()
|
| 25 |
+
/// {
|
| 26 |
+
/// Assert.That(() => {
|
| 27 |
+
/// int a = 0;
|
| 28 |
+
/// a = 1;
|
| 29 |
+
/// }, Is.Not.AllocatingGCMemory());
|
| 30 |
+
/// }
|
| 31 |
+
/// }
|
| 32 |
+
/// </code>
|
| 33 |
+
/// </example>
|
| 34 |
+
public class AllocatingGCMemoryConstraint : Constraint
|
| 35 |
+
{
|
| 36 |
+
private class AllocatingGCMemoryResult : ConstraintResult
|
| 37 |
+
{
|
| 38 |
+
private readonly int diff;
|
| 39 |
+
public AllocatingGCMemoryResult(IConstraint constraint, object actualValue, int diff) : base(constraint, actualValue, diff > 0)
|
| 40 |
+
{
|
| 41 |
+
this.diff = diff;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
public override void WriteMessageTo(MessageWriter writer)
|
| 45 |
+
{
|
| 46 |
+
if (diff == 0)
|
| 47 |
+
writer.WriteMessageLine("The provided delegate did not make any GC allocations.");
|
| 48 |
+
else
|
| 49 |
+
writer.WriteMessageLine("The provided delegate made {0} GC allocation(s).", diff);
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
private ConstraintResult ApplyTo(Action action, object original)
|
| 54 |
+
{
|
| 55 |
+
var recorder = Recorder.Get("GC.Alloc");
|
| 56 |
+
|
| 57 |
+
// The recorder was created enabled, which means it captured the creation of the Recorder object itself, etc.
|
| 58 |
+
// Disabling it flushes its data, so that we can retrieve the sample block count and have it correctly account
|
| 59 |
+
// for these initial allocations.
|
| 60 |
+
recorder.enabled = false;
|
| 61 |
+
|
| 62 |
+
#if !UNITY_WEBGL
|
| 63 |
+
recorder.FilterToCurrentThread();
|
| 64 |
+
#endif
|
| 65 |
+
|
| 66 |
+
recorder.enabled = true;
|
| 67 |
+
|
| 68 |
+
try
|
| 69 |
+
{
|
| 70 |
+
action();
|
| 71 |
+
}
|
| 72 |
+
finally
|
| 73 |
+
{
|
| 74 |
+
recorder.enabled = false;
|
| 75 |
+
#if !UNITY_WEBGL
|
| 76 |
+
recorder.CollectFromAllThreads();
|
| 77 |
+
#endif
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
return new AllocatingGCMemoryResult(this, original, recorder.sampleBlockCount);
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
/// <summary>
|
| 84 |
+
/// Applies GC memory constraint to the test.
|
| 85 |
+
/// </summary>
|
| 86 |
+
/// <param name="obj">An object to apply the GC constraint to. Should be a <see cref="TestDelegate"/>.</param>
|
| 87 |
+
/// <returns>A ConstraintResult</returns>
|
| 88 |
+
/// <exception cref="ArgumentNullException">Throws a <see cref="ArgumentNullException"/> if the provided object is null.</exception>
|
| 89 |
+
/// <exception cref="ArgumentException">Throws a <see cref="ArgumentException"/> if the provided object is not a <see cref="TestDelegate"/>.</exception>
|
| 90 |
+
public override ConstraintResult ApplyTo(object obj)
|
| 91 |
+
{
|
| 92 |
+
if (obj == null)
|
| 93 |
+
throw new ArgumentNullException();
|
| 94 |
+
|
| 95 |
+
TestDelegate d = obj as TestDelegate;
|
| 96 |
+
if (d == null)
|
| 97 |
+
throw new ArgumentException(string.Format("The actual value must be a TestDelegate but was {0}",
|
| 98 |
+
obj.GetType()));
|
| 99 |
+
|
| 100 |
+
return ApplyTo(() => d.Invoke(), obj);
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
/// <summary>
|
| 104 |
+
/// Test whether the constraint is satisfied by a given reference.
|
| 105 |
+
/// The default implementation simply dereferences the value but
|
| 106 |
+
/// derived classes may override it to provide for delayed processing.
|
| 107 |
+
/// </summary>
|
| 108 |
+
/// <typeparam name="TActual">The type of the actual value delegate to be tested.</typeparam>
|
| 109 |
+
/// <param name="del">A reference to the value delegate to be tested</param>
|
| 110 |
+
/// <returns>A ConstraintResult</returns>
|
| 111 |
+
/// <exception cref="ArgumentNullException">Throws a <see cref="ArgumentNullException"/> if the provided delegate is null.</exception>
|
| 112 |
+
public override ConstraintResult ApplyTo<TActual>(ActualValueDelegate<TActual> del)
|
| 113 |
+
{
|
| 114 |
+
if (del == null)
|
| 115 |
+
throw new ArgumentNullException();
|
| 116 |
+
|
| 117 |
+
return ApplyTo(() => del.Invoke(), del);
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
/// <summary>
|
| 121 |
+
/// The Description of what this constraint tests, for to use in messages and in the ConstraintResult.
|
| 122 |
+
/// </summary>
|
| 123 |
+
public override string Description
|
| 124 |
+
{
|
| 125 |
+
get { return "allocates GC memory"; }
|
| 126 |
+
}
|
| 127 |
+
}
|
| 128 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/AllocatingGCMemoryConstraint.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: d09858396dd7adb4bbdb22ea0c8c3a37
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/ConstraintsExtensions.cs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using NUnit.Framework.Constraints;
|
| 2 |
+
|
| 3 |
+
namespace UnityEngine.TestTools.Constraints
|
| 4 |
+
{
|
| 5 |
+
public static class ConstraintExtensions
|
| 6 |
+
{
|
| 7 |
+
public static AllocatingGCMemoryConstraint AllocatingGCMemory(this ConstraintExpression chain)
|
| 8 |
+
{
|
| 9 |
+
var constraint = new AllocatingGCMemoryConstraint();
|
| 10 |
+
chain.Append(constraint);
|
| 11 |
+
return constraint;
|
| 12 |
+
}
|
| 13 |
+
}
|
| 14 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/ConstraintsExtensions.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 68a48d1900320ed458e118415857faf6
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/InvalidSignatureException.cs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using NUnit.Framework;
|
| 2 |
+
using NUnit.Framework.Interfaces;
|
| 3 |
+
|
| 4 |
+
namespace UnityEngine.TestTools.TestRunner
|
| 5 |
+
{
|
| 6 |
+
internal class InvalidSignatureException : ResultStateException
|
| 7 |
+
{
|
| 8 |
+
public InvalidSignatureException(string message)
|
| 9 |
+
: base(message)
|
| 10 |
+
{
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
public override ResultState ResultState
|
| 14 |
+
{
|
| 15 |
+
get { return ResultState.NotRunnable; }
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/InvalidSignatureException.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 9650d910fcaefb34cb45f121c1993892
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/Is.cs
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
namespace UnityEngine.TestTools.Constraints
|
| 2 |
+
{
|
| 3 |
+
public class Is : NUnit.Framework.Is
|
| 4 |
+
{
|
| 5 |
+
public static AllocatingGCMemoryConstraint AllocatingGCMemory()
|
| 6 |
+
{
|
| 7 |
+
return new AllocatingGCMemoryConstraint();
|
| 8 |
+
}
|
| 9 |
+
}
|
| 10 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/Is.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 6d5833966abeadb429de247e4316eef4
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/LogAssert.cs
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System.Text.RegularExpressions;
|
| 2 |
+
using UnityEngine.TestTools.Logging;
|
| 3 |
+
|
| 4 |
+
namespace UnityEngine.TestTools
|
| 5 |
+
{
|
| 6 |
+
/// <summary>
|
| 7 |
+
/// A test fails if Unity logs a message other than a regular log or warning message. Use `LogAssert` to check for an expected message in the log so that the test does not fail when Unity logs the message.
|
| 8 |
+
/// Use `LogAssert.Expect` before running the code under test, as the check for expected logs runs at the end of each frame.
|
| 9 |
+
/// A test also reports a failure, if an expected message does not appear, or if Unity does not log any regular log or warning messages.
|
| 10 |
+
///
|
| 11 |
+
/// `LogAssert` lets you expect Unity log messages that would otherwise cause the test to fail.
|
| 12 |
+
/// </summary>
|
| 13 |
+
public static class LogAssert
|
| 14 |
+
{
|
| 15 |
+
/// <summary>
|
| 16 |
+
/// Verifies that a log message of a specified type appears in the log. A test won't fail from an expected error, assertion, or exception log message. It does fail if an expected message does not appear in the log.
|
| 17 |
+
/// </summary>
|
| 18 |
+
/// <param name="type">A type of log to expect. It can take one of the [LogType enum](https://docs.unity3d.com/ScriptReference/LogType.html) values.</param>
|
| 19 |
+
/// <param name="message">A string value that should equate to the expected message.</param>
|
| 20 |
+
/// <example>
|
| 21 |
+
/// <code>
|
| 22 |
+
/// [Test]
|
| 23 |
+
/// public void LogAssertExample()
|
| 24 |
+
/// {
|
| 25 |
+
/// // Expect a regular log message
|
| 26 |
+
/// LogAssert.Expect(LogType.Log, "Log message");
|
| 27 |
+
///
|
| 28 |
+
/// // The test fails without the following expected log message
|
| 29 |
+
/// Debug.Log("Log message");
|
| 30 |
+
///
|
| 31 |
+
/// // An error log
|
| 32 |
+
/// Debug.LogError("Error message");
|
| 33 |
+
///
|
| 34 |
+
/// // Without expecting an error log, the test would fail
|
| 35 |
+
/// LogAssert.Expect(LogType.Error, "Error message");
|
| 36 |
+
/// }
|
| 37 |
+
///
|
| 38 |
+
/// </code>
|
| 39 |
+
/// </example>
|
| 40 |
+
public static void Expect(LogType type, string message)
|
| 41 |
+
{
|
| 42 |
+
LogScope.Current.ExpectedLogs.Enqueue(new LogMatch() { LogType = type, Message = message });
|
| 43 |
+
}
|
| 44 |
+
/// <summary>
|
| 45 |
+
/// Verifies that a log message of a specified type appears in the log. A test won't fail from an expected error, assertion, or exception log message. It does fail if an expected message does not appear in the log.
|
| 46 |
+
/// </summary>
|
| 47 |
+
/// <param name="type">A type of log to expect. It can take one of the [LogType enum](https://docs.unity3d.com/ScriptReference/LogType.html) values.</param>
|
| 48 |
+
/// <param name="message">A regular expression pattern to match the expected message.</param>
|
| 49 |
+
public static void Expect(LogType type, Regex message)
|
| 50 |
+
{
|
| 51 |
+
LogScope.Current.ExpectedLogs.Enqueue(new LogMatch() { LogType = type, MessageRegex = message });
|
| 52 |
+
}
|
| 53 |
+
/// <summary>
|
| 54 |
+
/// Triggers an assertion when receiving any log messages and fails the test if some are unexpected messages. If multiple tests need to check for no received unexpected logs, consider using the <see cref="TestMustExpectAllLogsAttribute"/> attribute instead.
|
| 55 |
+
/// </summary>
|
| 56 |
+
public static void NoUnexpectedReceived()
|
| 57 |
+
{
|
| 58 |
+
LogScope.Current.NoUnexpectedReceived();
|
| 59 |
+
}
|
| 60 |
+
/// <summary>Set this property to `true` to prevent unexpected error log messages from triggering an assertion. By default, it is `false`.</summary>
|
| 61 |
+
/// <returns>The value of the ignoreFailingMessages boolean property.</returns>
|
| 62 |
+
public static bool ignoreFailingMessages
|
| 63 |
+
{
|
| 64 |
+
get
|
| 65 |
+
{
|
| 66 |
+
return LogScope.Current.IgnoreFailingMessages;
|
| 67 |
+
}
|
| 68 |
+
set
|
| 69 |
+
{
|
| 70 |
+
if (value != LogScope.Current.IgnoreFailingMessages)
|
| 71 |
+
{
|
| 72 |
+
Debug.LogFormat(LogType.Log, LogOption.NoStacktrace, null, "\nIgnoreFailingMessages:" + (value? "true":"false"));
|
| 73 |
+
}
|
| 74 |
+
LogScope.Current.IgnoreFailingMessages = value;
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/LogAssert.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: c97b794b51780d349a16826a4c7898d7
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/LogScope.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: b1d8465ba1376b148bdab58965101f47
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/UnexpectedLogMessageException.cs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using NUnit.Framework;
|
| 2 |
+
using NUnit.Framework.Interfaces;
|
| 3 |
+
using UnityEngine.TestTools.Logging;
|
| 4 |
+
|
| 5 |
+
namespace UnityEngine.TestTools.TestRunner
|
| 6 |
+
{
|
| 7 |
+
internal class UnexpectedLogMessageException : ResultStateException
|
| 8 |
+
{
|
| 9 |
+
public LogMatch LogEvent;
|
| 10 |
+
|
| 11 |
+
public UnexpectedLogMessageException(LogMatch log)
|
| 12 |
+
: base(BuildMessage(log))
|
| 13 |
+
{
|
| 14 |
+
LogEvent = log;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
private static string BuildMessage(LogMatch log)
|
| 18 |
+
{
|
| 19 |
+
return string.Format("Expected log did not appear: {0}", log);
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
public override ResultState ResultState
|
| 23 |
+
{
|
| 24 |
+
get { return ResultState.Failure; }
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
public override string StackTrace { get { return null; } }
|
| 28 |
+
}
|
| 29 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/UnexpectedLogMessageException.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 5b2eeca598284bd4abb4a15c30df1576
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/UnhandledLogMessageException.cs
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using NUnit.Framework;
|
| 2 |
+
using NUnit.Framework.Interfaces;
|
| 3 |
+
using UnityEngine.TestTools.Logging;
|
| 4 |
+
using UnityEngine.TestTools.Utils;
|
| 5 |
+
|
| 6 |
+
namespace UnityEngine.TestTools.TestRunner
|
| 7 |
+
{
|
| 8 |
+
internal class UnhandledLogMessageException : ResultStateException
|
| 9 |
+
{
|
| 10 |
+
public LogEvent LogEvent;
|
| 11 |
+
private readonly string m_CustomStackTrace;
|
| 12 |
+
|
| 13 |
+
public UnhandledLogMessageException(LogEvent log)
|
| 14 |
+
: base(BuildMessage(log))
|
| 15 |
+
{
|
| 16 |
+
LogEvent = log;
|
| 17 |
+
m_CustomStackTrace = StackTraceFilter.Filter(log.StackTrace);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
private static string BuildMessage(LogEvent log)
|
| 21 |
+
{
|
| 22 |
+
return string.Format("Unhandled log message: '{0}'. Use UnityEngine.TestTools.LogAssert.Expect", log);
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
public override ResultState ResultState
|
| 26 |
+
{
|
| 27 |
+
get { return ResultState.Failure; }
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
public override string StackTrace
|
| 31 |
+
{
|
| 32 |
+
get { return m_CustomStackTrace; }
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/UnhandledLogMessageException.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: a8ed4063f2beecd41a234a582202f3c4
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/UnityTestTimeoutException.cs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using NUnit.Framework;
|
| 2 |
+
using NUnit.Framework.Interfaces;
|
| 3 |
+
|
| 4 |
+
namespace UnityEngine.TestTools.TestRunner
|
| 5 |
+
{
|
| 6 |
+
internal class UnityTestTimeoutException : ResultStateException
|
| 7 |
+
{
|
| 8 |
+
public UnityTestTimeoutException(int timeout)
|
| 9 |
+
: base(BuildMessage(timeout))
|
| 10 |
+
{
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
private static string BuildMessage(int timeout)
|
| 14 |
+
{
|
| 15 |
+
return string.Format("Timeout value of {0}ms was exceeded", timeout);
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
public override ResultState ResultState
|
| 19 |
+
{
|
| 20 |
+
get { return ResultState.Failure; }
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
public override string StackTrace
|
| 24 |
+
{
|
| 25 |
+
get { return ""; }
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Assertions/UnityTestTimeoutException.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: ffb335140c799c4408411d81789fb05c
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/NUnitExtensions.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 3e8d6af343b383544ba5743d119f4062
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/NUnitExtensions/ActionDelegator.cs
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System;
|
| 2 |
+
using System.Linq;
|
| 3 |
+
using UnityEngine.TestRunner.NUnitExtensions.Runner;
|
| 4 |
+
using UnityEngine.TestTools.Logging;
|
| 5 |
+
using UnityEngine.TestTools.TestRunner;
|
| 6 |
+
|
| 7 |
+
namespace UnityEngine.TestTools.NUnitExtensions
|
| 8 |
+
{
|
| 9 |
+
/// <summary>
|
| 10 |
+
/// This class delegates actions from the NUnit thread that should be executed on the main thread.
|
| 11 |
+
/// NUnit thread calls Delegate which blocks the execution on the thread until the action is executed.
|
| 12 |
+
/// The main thread will poll for awaiting actions (HasAction) and invoke them (Execute).
|
| 13 |
+
/// Once the action is executed, the main thread releases the lock and executino on the NUnit thread is continued.
|
| 14 |
+
/// </summary>
|
| 15 |
+
internal class ActionDelegator : BaseDelegator
|
| 16 |
+
{
|
| 17 |
+
private Func<object> m_Action;
|
| 18 |
+
public object Delegate(Action action)
|
| 19 |
+
{
|
| 20 |
+
return Delegate(() => { action(); return null; });
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
public object Delegate(Func<object> action)
|
| 24 |
+
{
|
| 25 |
+
if (m_Aborted)
|
| 26 |
+
{
|
| 27 |
+
return null;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
AssertState();
|
| 31 |
+
m_Context = UnityTestExecutionContext.CurrentContext;
|
| 32 |
+
|
| 33 |
+
m_Signal.Reset();
|
| 34 |
+
m_Action = action;
|
| 35 |
+
|
| 36 |
+
WaitForSignal();
|
| 37 |
+
|
| 38 |
+
return HandleResult();
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
private void AssertState()
|
| 42 |
+
{
|
| 43 |
+
if (m_Action != null)
|
| 44 |
+
{
|
| 45 |
+
throw new Exception("Action not executed yet");
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
public bool HasAction()
|
| 50 |
+
{
|
| 51 |
+
return m_Action != null;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
public void Execute(LogScope logScope)
|
| 55 |
+
{
|
| 56 |
+
try
|
| 57 |
+
{
|
| 58 |
+
SetCurrentTestContext();
|
| 59 |
+
m_Result = m_Action();
|
| 60 |
+
if (logScope.AnyFailingLogs())
|
| 61 |
+
{
|
| 62 |
+
var failingLog = logScope.FailingLogs.First();
|
| 63 |
+
throw new UnhandledLogMessageException(failingLog);
|
| 64 |
+
}
|
| 65 |
+
if (logScope.ExpectedLogs.Any())
|
| 66 |
+
throw new UnexpectedLogMessageException(LogScope.Current.ExpectedLogs.Peek());
|
| 67 |
+
}
|
| 68 |
+
catch (Exception e)
|
| 69 |
+
{
|
| 70 |
+
m_Exception = e;
|
| 71 |
+
}
|
| 72 |
+
finally
|
| 73 |
+
{
|
| 74 |
+
m_Action = null;
|
| 75 |
+
m_Signal.Set();
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/NUnitExtensions/ActionDelegator.cs.meta
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 4f939b9e23a0946439b812551e07ac81
|
| 3 |
+
MonoImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
serializedVersion: 2
|
| 6 |
+
defaultReferences: []
|
| 7 |
+
executionOrder: 0
|
| 8 |
+
icon: {instanceID: 0}
|
| 9 |
+
userData:
|
| 10 |
+
assetBundleName:
|
| 11 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/NUnitExtensions/Attributes.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 0cb14878543cf3d4f8472b15f7ecf0e3
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/TestRunner.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 1ddb9e1c877ea80479d1eab4ddaa5d0d
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/UnityEngine.TestRunner.asmdef
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "UnityEngine.TestRunner",
|
| 3 |
+
"references": [],
|
| 4 |
+
"includePlatforms": [],
|
| 5 |
+
"excludePlatforms": [],
|
| 6 |
+
"allowUnsafeCode": false,
|
| 7 |
+
"overrideReferences": true,
|
| 8 |
+
"precompiledReferences": [
|
| 9 |
+
"nunit.framework.dll"
|
| 10 |
+
],
|
| 11 |
+
"autoReferenced": false,
|
| 12 |
+
"defineConstraints": []
|
| 13 |
+
}
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/UnityEngine.TestRunner.asmdef.meta
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: 27619889b8ba8c24980f49ee34dbb44a
|
| 3 |
+
AssemblyDefinitionImporter:
|
| 4 |
+
externalObjects: {}
|
| 5 |
+
userData:
|
| 6 |
+
assetBundleName:
|
| 7 |
+
assetBundleVariant:
|
benchmark/NYU_CTF_Bench/test/2022/CSAW-Quals/rev/AnyaGacha/src/client/Library/PackageCache/com.unity.test-framework@1.1.22/UnityEngine.TestRunner/Utils.meta
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fileFormatVersion: 2
|
| 2 |
+
guid: bb32bccaf32a6db448d1c0cc99c78688
|
| 3 |
+
folderAsset: yes
|
| 4 |
+
DefaultImporter:
|
| 5 |
+
externalObjects: {}
|
| 6 |
+
userData:
|
| 7 |
+
assetBundleName:
|
| 8 |
+
assetBundleVariant:
|