Commit 98ca6e3
committed
encoding/gocode: fix test
As part of previous CL, I noticed that the expected validation
didn't seem to be happening. It turned out that this was
due to a mismatch in field names between Go type and CUE code.
It would probably be better to use a definition here for typo-checking,
but in the meantime, change the tests so they're actually checking
what they intend to be checking.
Signed-off-by: Roger Peppe <[email protected]>
Change-Id: I63d93f8ed81b29b3ed92bc728bc48f55a90e39ab
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1231503
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Marcel van Lohuizen <[email protected]>1 parent b3d9ffc commit 98ca6e3
File tree
4 files changed
+20
-7
lines changed- encoding/gocode
- testdata
- pkg1
- pkg2
4 files changed
+20
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
84 | 97 | | |
85 | 98 | | |
86 | 99 | | |
87 | 100 | | |
88 | | - | |
| 101 | + | |
89 | 102 | | |
90 | 103 | | |
91 | 104 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
0 commit comments