aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/ast/test_util.go
Commit message (Collapse)AuthorAgeFilesLines
* all: ioutil is deprecated in go1.19 (#3718)Taras Madan2023-02-231-2/+2
|
* pkg/ast: improve test outputDmitry Vyukov2020-05-051-12/+40
| | | | Improve the test utility to group error messages by line.
* pkg/compiler: add tests for generation phaseDmitry Vyukov2020-03-171-5/+7
| | | | | | Add errors3.txt with tests for errors that are produced during generation phase. Refactor tests to reduce duplication. Tidy struct/union size errors: better locations and make testable.
* all: fix gometalinter warningsDmitry Vyukov2018-03-081-1/+1
| | | | Fix typos, non-canonical code, remove dead code, etc.
* pkg/compiler: allow unions as syscall argumentsDmitry Vyukov2018-02-231-0/+6
| | | | | If all union options can be syscall arguments, allow the union itself as syscall argument.
* pkg/compiler: support type templatesDmitry Vyukov2018-01-131-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Netlink descriptions contain tons of code duplication, and need much more for proper descriptions. Introduce type templates to simplify writing such descriptions and remove code duplication. Note: type templates are experimental, have poor error handling and are subject to change. Type templates can be declared as follows: ``` type buffer[DIR] ptr[DIR, array[int8]] type fileoff[BASE] BASE type nlattr[TYPE, PAYLOAD] { nla_len len[parent, int16] nla_type const[TYPE, int16] payload PAYLOAD } [align_4] ``` and later used as follows: ``` syscall(a buffer[in], b fileoff[int64], c ptr[in, nlattr[FOO, int32]]) ```
* pkg/compiler: more static error checkingDmitry Vyukov2017-08-271-0/+99
Update #217