Commit 2709147
committed
refactor: Simplify reflection logic in
- The `reflect` function has been refactored to simplify the process of accessing the internal `ComposeUiTest` from a `ComposeContentTestRule`.
- Removed the separate `findField` and `getOrNull` helper functions.
- The reflection logic is now consolidated directly within the `reflect` function, using a `try-catch` block to handle potential `NoSuchFieldException` and `IllegalAccessException`.ComposeTestNodeProvider
1 parent 3b5cac0 commit 2709147
File tree
1 file changed
+10
-24
lines changed- ui/test-jvm/src/main/kotlin/com/softartdev/notedelight
1 file changed
+10
-24
lines changedLines changed: 10 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 10 | + | |
25 | 11 | | |
26 | | - | |
27 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
28 | 20 | | |
29 | 21 | | |
30 | | - | |
| 22 | + | |
31 | 23 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
0 commit comments