mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
more lgtm files from gofmt
R=gri OCL=35485 CL=35488
This commit is contained in:
parent
8231548365
commit
094f1d5990
78 changed files with 1517 additions and 1441 deletions
|
|
@ -470,7 +470,7 @@ func TestAllMatches(t *testing.T) {
|
|||
|
||||
switch c.matchfunc {
|
||||
case "matchit":
|
||||
result = make([]string, len(c.input) + 1);
|
||||
result = make([]string, len(c.input)+1);
|
||||
i := 0;
|
||||
b := strings.Bytes(c.input);
|
||||
for match := range re.AllMatchesIter(b, c.n) {
|
||||
|
|
@ -479,7 +479,7 @@ func TestAllMatches(t *testing.T) {
|
|||
}
|
||||
result = result[0:i];
|
||||
case "stringmatchit":
|
||||
result = make([]string, len(c.input) + 1);
|
||||
result = make([]string, len(c.input)+1);
|
||||
i := 0;
|
||||
for match := range re.AllMatchesStringIter(c.input, c.n) {
|
||||
result[i] = match;
|
||||
|
|
@ -487,7 +487,7 @@ func TestAllMatches(t *testing.T) {
|
|||
}
|
||||
result = result[0:i];
|
||||
case "match":
|
||||
result = make([]string, len(c.input) + 1);
|
||||
result = make([]string, len(c.input)+1);
|
||||
b := strings.Bytes(c.input);
|
||||
i := 0;
|
||||
for _, match := range re.AllMatches(b, c.n) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue