forked from go-critic/go-critic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
negative_tests.go
54 lines (39 loc) · 905 Bytes
/
negative_tests.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package checker_test
import (
"bytes"
"image"
"image/draw"
"net/http"
"strings"
"sync"
)
func appliedSuggestions(s string, b []byte, i draw.Image, r image.Rectangle, p image.Point, o draw.Op) {
var wg sync.WaitGroup
wg.Done()
wg.Add(1)
var buf bytes.Buffer
buf.Reset()
buf.Truncate(1)
strings.Split(s, ".")
strings.ToTitle(s)
strings.ReplaceAll(s, "a", "b")
bytes.Split(b, []byte("."))
bytes.ToUpper(b)
bytes.ToLower(b)
bytes.ToTitle(b)
bytes.ReplaceAll(b, b, b)
_ = http.NotFoundHandler()
draw.Draw(i, r, i, p, o)
}
func nonMatchingArgs(s string, b []byte, i draw.Image, r image.Rectangle, p image.Point, o draw.Op) {
var wg sync.WaitGroup
wg.Add(1)
strings.Map(nil, s)
strings.Replace(s, "a", "b", 1)
bytes.Map(nil, b)
bytes.Map(nil, b)
bytes.Map(nil, b)
bytes.Replace(b, b, b, 1)
_ = http.HandlerFunc(nil)
draw.DrawMask(i, r, i, p, i, image.Point{}, o)
}