1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00

renames fixtures as testdata to avoid spurious dependencies (#359)

This commit is contained in:
SalvadorC
2020-03-02 20:12:43 +01:00
committed by GitHub
parent 4af5ef3e1c
commit c469747758
80 changed files with 2 additions and 2 deletions

25
testdata/modifies-param.go vendored Normal file
View File

@@ -0,0 +1,25 @@
package fixtures
func one(a int) {
a, b := 1, 2 // MATCH /parameter 'a' seems to be modified/
a++ // MATCH /parameter 'a' seems to be modified/
}
func two(b, c float32) {
if c > 0.0 {
b = 1 // MATCH /parameter 'b' seems to be modified/
}
}
type foo struct {
a string
}
func three(s *foo) {
s.a = "foooooo"
}
// non regression test for issue 355
func issue355(_ *foo) {
_ = "foooooo"
}