test(iferr): add test

chore(ci): install go, and go bins for tests
This commit is contained in:
Oleksandr Smirnov 2025-02-17 17:57:41 +02:00
parent ecb9919e02
commit 8b1bb40baa
No known key found for this signature in database
6 changed files with 103 additions and 6 deletions

9
spec/fixtures/iferr/iferr_input.go vendored Normal file
View file

@ -0,0 +1,9 @@
package main
func test() error {
return nil
}
func main() {
err := test()
}

12
spec/fixtures/iferr/iferr_output.go vendored Normal file
View file

@ -0,0 +1,12 @@
package main
func test() error {
return nil
}
func main() {
err := test()
if err != nil {
return
}
}