Skip to content

Commit be840a7

Browse files
committed
migrate from insta into a custom solution
1 parent bd88df7 commit be840a7

File tree

917 files changed

+3390022
-2972035
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

917 files changed

+3390022
-2972035
lines changed

Cargo.toml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ num_enum = "0.7.3"
1515
num-traits = "0.2.19"
1616
zstd = "0.13.3"
1717
rstest = "0.25.0"
18-
insta = "1.43.1"
18+
ron = "0.10.1"
19+
rustc-hash = "2.1.1"
1920

2021
[features]
2122
default = []
@@ -24,10 +25,3 @@ restrictive = []
2425
[[bin]]
2526
name = "idb-tools"
2627
path = "src/tools/tools.rs"
27-
28-
[dev-dependencies]
29-
insta = { version = "1.43.1", features = ["yaml"] }
30-
31-
[profile.dev.package]
32-
insta.opt-level = 3
33-
similar.opt-level = 3
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2+
hash: 1F650A9E68FE69DA
23
source: src/test.rs
34
expression: c_header_path
45
---
5-
"/Program Files/Microsoft Visual Studio/VC98/include\u0000"
6+
Some("/Program Files/Microsoft Visual Studio/VC98/include\0")
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2+
hash: 87E3B6FF45D88256
23
source: src/test.rs
34
expression: c_predefined_macros
45
---
5-
"_cdecl=__cdecl;_pascal=__pascal;_huge=__huge;_near=__near;_far=__far;__inline=;_inline=;inline=;CM_WINNT;MPR50;_INTEGRAL_MAX_BITS=64;_MSC_VER=1400;_CHAR_UNSIGNED=1;_M_IX86=300;__MT__=1;__TLS__=1;_Windows=1;__WIN32__=1;_WIN32_WINNT=0x0500;WINVER=0x0500;_WIN32=1;OLEDBVER=0x0250;SECURITY_WIN32;WIN32_SUPPORT;DBNTWIN32;W32SUT_32;\u0000"
6+
Some("_cdecl=__cdecl;_pascal=__pascal;_huge=__huge;_near=__near;_far=__far;__inline=;_inline=;inline=;CM_WINNT;MPR50;_INTEGRAL_MAX_BITS=64;_MSC_VER=1400;_CHAR_UNSIGNED=1;_M_IX86=300;__MT__=1;__TLS__=1;_Windows=1;__WIN32__=1;_WIN32_WINNT=0x0500;WINVER=0x0500;_WIN32=1;OLEDBVER=0x0250;SECURITY_WIN32;WIN32_SUPPORT;DBNTWIN32;W32SUT_32;\0")
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2+
hash: A785B703E1F989B0
23
source: src/test.rs
34
expression: database_creation_time
45
---
5-
1590496576
6+
1590496576
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2+
hash: AC326BCA0448A3C9
23
source: src/test.rs
34
expression: database_creation_version
45
---
5-
"7.5\u0000"
6+
Some("7.5\0")
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2+
hash: 7D7EAEA3AB779DA5
23
source: src/test.rs
34
expression: database_initial_version
45
---
5-
700
6+
700
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2+
hash: 2638394ABF3C7391
23
source: src/test.rs
34
expression: database_num_opens
45
---
5-
70
6+
70
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2+
hash: 738CBEDCCA6F9F09
23
source: src/test.rs
34
expression: database_secs_opens
45
---
5-
6110396
6+
6110396
Lines changed: 94 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,98 @@
11
---
2+
hash: 3989436F7C0B0894
23
source: src/test.rs
34
expression: entry_points
45
---
5-
- name: VFEP
6-
address: 6442774336
7-
forwarded: ~
8-
entry_type: ~
9-
- name: UMEP
10-
address: 6442774352
11-
forwarded: ~
12-
entry_type: ~
13-
- name: DllEntryPoint
14-
address: 6443139928
15-
forwarded: ~
16-
entry_type:
17-
comment: ~
18-
is_const: false
19-
is_volatile: false
20-
type_variant:
21-
Function:
22-
calling_convention: Stdcall
23-
ret:
24-
comment: ~
25-
is_const: false
26-
is_volatile: false
27-
type_variant:
28-
Typeref:
29-
ref_type: ~
30-
typeref_value:
31-
UnsolvedName: BOOL
32-
args:
33-
- name: ~
34-
comment: ~
35-
ty:
36-
comment: ~
37-
is_const: false
38-
is_volatile: false
39-
type_variant:
40-
Typeref:
41-
ref_type: ~
42-
typeref_value:
43-
UnsolvedName: HINSTANCE
44-
loc: ~
45-
flags: ~
46-
- name: ~
47-
comment: ~
48-
ty:
49-
comment: ~
50-
is_const: false
51-
is_volatile: false
52-
type_variant:
53-
Typeref:
54-
ref_type: ~
55-
typeref_value:
56-
UnsolvedName: DWORD
57-
loc: ~
58-
flags: ~
59-
- name: ~
60-
comment: ~
61-
ty:
62-
comment: ~
63-
is_const: false
64-
is_volatile: false
65-
type_variant:
66-
Typeref:
67-
ref_type: ~
68-
typeref_value:
69-
UnsolvedName: LPVOID
70-
loc: ~
71-
flags: ~
72-
retloc: ~
73-
method: ~
74-
is_noret: false
75-
is_pure: false
76-
is_high: false
77-
is_static: false
78-
is_virtual: false
79-
is_const: false
80-
is_constructor: false
81-
is_destructor: false
6+
[
7+
(
8+
name: "VFEP",
9+
address: 6442774336,
10+
forwarded: None,
11+
entry_type: None,
12+
),
13+
(
14+
name: "UMEP",
15+
address: 6442774352,
16+
forwarded: None,
17+
entry_type: None,
18+
),
19+
(
20+
name: "DllEntryPoint",
21+
address: 6443139928,
22+
forwarded: None,
23+
entry_type: Some((
24+
comment: None,
25+
is_const: false,
26+
is_volatile: false,
27+
type_variant: Function((
28+
calling_convention: Some(Stdcall),
29+
ret: (
30+
comment: None,
31+
is_const: false,
32+
is_volatile: false,
33+
type_variant: Typeref((
34+
ref_type: None,
35+
typeref_value: UnsolvedName(Some("BOOL")),
36+
)),
37+
),
38+
args: [
39+
(
40+
name: None,
41+
comment: None,
42+
ty: (
43+
comment: None,
44+
is_const: false,
45+
is_volatile: false,
46+
type_variant: Typeref((
47+
ref_type: None,
48+
typeref_value: UnsolvedName(Some("HINSTANCE")),
49+
)),
50+
),
51+
loc: None,
52+
flags: None,
53+
),
54+
(
55+
name: None,
56+
comment: None,
57+
ty: (
58+
comment: None,
59+
is_const: false,
60+
is_volatile: false,
61+
type_variant: Typeref((
62+
ref_type: None,
63+
typeref_value: UnsolvedName(Some("DWORD")),
64+
)),
65+
),
66+
loc: None,
67+
flags: None,
68+
),
69+
(
70+
name: None,
71+
comment: None,
72+
ty: (
73+
comment: None,
74+
is_const: false,
75+
is_volatile: false,
76+
type_variant: Typeref((
77+
ref_type: None,
78+
typeref_value: UnsolvedName(Some("LPVOID")),
79+
)),
80+
),
81+
loc: None,
82+
flags: None,
83+
),
84+
],
85+
retloc: None,
86+
method: None,
87+
is_noret: false,
88+
is_pure: false,
89+
is_high: false,
90+
is_static: false,
91+
is_virtual: false,
92+
is_const: false,
93+
is_constructor: false,
94+
is_destructor: false,
95+
)),
96+
)),
97+
),
98+
]
Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
---
2+
hash: 11C3B1611E1892EE
23
source: src/test.rs
34
expression: file_regions
45
---
5-
- start: 6442455040
6-
end: 6443279360
7-
eva: 1024
8-
- start: 6443282432
9-
end: 6443721728
10-
eva: 825344
11-
- start: 6443724800
12-
end: 6444103680
13-
eva: 1264640
14-
- start: 6444154880
15-
end: 6444192256
16-
eva: 1643520
6+
[
7+
(
8+
start: 6442455040,
9+
end: 6443279360,
10+
eva: 1024,
11+
),
12+
(
13+
start: 6443282432,
14+
end: 6443721728,
15+
eva: 825344,
16+
),
17+
(
18+
start: 6443724800,
19+
end: 6444103680,
20+
eva: 1264640,
21+
),
22+
(
23+
start: 6444154880,
24+
end: 6444192256,
25+
eva: 1643520,
26+
),
27+
]

0 commit comments

Comments
 (0)