aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/compiler/const_file_test.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/compiler: add ExistsAny() to ConstFileAleksandr Nogikh2023-10-041-10/+6
| | | | | | The new method checks whether the value is defined for at least one of the known arches. Refactor ConstFile tests.
* all: ioutil is deprecated in go1.19 (#3718)Taras Madan2023-02-231-3/+2
|
* all: use `t.TempDir` to create temporary test directoryEng Zer Jun2022-03-281-5/+1
| | | | | | | | | This commit replaces all `ioutil.TempDir` with `t.TempDir` in tests. The directory created by `t.TempDir` is automatically removed when the test and all its subtests complete. Reference: https://pkg.go.dev/testing#T.TempDir Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* pkg/compiler: merge const files into a single fileDmitry Vyukov2020-08-131-0/+130
We now have 8 arches for Linux and .const files produce lots of noise in PRs and lots of diffs. If 3 .txt files are touched, the PR will have 24 .const files, which will be intermixed with .txt files. Frequently const values are equal across arches, and even if they don't spreading a single value across 8 files is inconvinient. Merge all 8 *_arch.const files into a single .const file. See the test for details of the new format. The old format is still parsed for now, we can't update all OSes at once. For Linux this reduces number of const files/lines from 1288/96599 to 158/11603. Fixes #1983