You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for improving testdata folder. I haven't contributed much to this repo, so I'm not in a position to make decisions about the preferred approach.
Here is the current testdata folder structure
Each
p.go
file contains a version oftestdata/src/default/p.go
that is slightly altered.It's a burden to maintain the content of these files, I experienced it by working on
I think code should be split into multiple file, for example one per type
integer.go
would be about the code that is likely to be affected byinteger-format
inp.go
hex.go
would be about the code that is likely to be affected byhex-format
inp.go
negative.go
would be about the code currently infunc negative()
inp.go
malformed.go
would be about the code currently infunc malformed()
inp.go
We could also consider using a different naming for file when they are altered
so
testdata/src/default
would containWhile
testdata/src/hex-format
would containThis could prepare the work of generating the testdata and golden files, but it's not the purpose of this issue
Note
Note: This change is not directly linked to #47, but they will have to be done one after the other to avoid conflicts.
The text was updated successfully, but these errors were encountered: