Repository navigation
Commit afb61b4
committed
test(golang): the generator's kind check and Go-name rule against the eql build
Review of #1095: lowerDeclaration's plaintext-kind check (Age int64 with
encrypt_into=TextEq) ran only against the real engine with EQL types, which
no test linked; and EQLGoName and eql-codegen's go_name held one rule with
nothing comparing them. TestRunAsksTheEmbeddedEngine, the one test that
links encrypt/eql, gains the kind-mismatch case ("TextEq seals a string,
and int64 is int", nothing written). The Go-name rule is exported as
stashgen.EQLGoName and checked against every row of the generated
eql.Types table from cmd/stashgen — not from stashgen's own tests, which
must not link encrypt/eql or the embedded engine they test changes build.
Claude-Session: https://claude.ai/code/session_01V3WFXwax4J3uecpFEJ6yHc1 parent 23a5ba7 commit afb61b4
2 files changed
Lines changed: 54 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
155 | 156 | | |
156 | 157 | | |
157 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
158 | 175 | | |
159 | 176 | | |
160 | 177 | | |
| |||
178 | 195 | | |
179 | 196 | | |
180 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
181 | 225 | | |
182 | 226 | | |
183 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
689 | 691 | | |
690 | 692 | | |
691 | 693 | | |
692 | | - | |
693 | | - | |
| 694 | + | |
| 695 | + | |
694 | 696 | | |
695 | | - | |
| 697 | + | |
696 | 698 | | |
697 | 699 | | |
698 | 700 | | |
| |||
0 commit comments