Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
d2829faa
Commit
d2829faa
authored
Oct 27, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
files that are okay from the last gofmt round
R=gri
http://go/go-review/1015011
parent
58ee1f5d
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
49 additions
and
64 deletions
+49
-64
src/pkg/bignum/nrdiv_test.go
src/pkg/bignum/nrdiv_test.go
+1
-1
src/pkg/bytes/buffer_test.go
src/pkg/bytes/buffer_test.go
+3
-3
src/pkg/bytes/bytes_test.go
src/pkg/bytes/bytes_test.go
+6
-10
src/pkg/debug/elf/file.go
src/pkg/debug/elf/file.go
+1
-1
src/pkg/debug/proc/proc_linux.go
src/pkg/debug/proc/proc_linux.go
+8
-16
src/pkg/go/doc/doc.go
src/pkg/go/doc/doc.go
+4
-4
src/pkg/image/png/reader.go
src/pkg/image/png/reader.go
+1
-1
src/pkg/os/exec.go
src/pkg/os/exec.go
+2
-2
src/pkg/os/path_test.go
src/pkg/os/path_test.go
+2
-2
src/pkg/path/path_test.go
src/pkg/path/path_test.go
+10
-12
src/pkg/strconv/decimal_test.go
src/pkg/strconv/decimal_test.go
+2
-2
src/pkg/template/template_test.go
src/pkg/template/template_test.go
+1
-3
src/pkg/time/time_test.go
src/pkg/time/time_test.go
+3
-3
src/pkg/time/zoneinfo.go
src/pkg/time/zoneinfo.go
+1
-1
src/pkg/unicode/script_test.go
src/pkg/unicode/script_test.go
+4
-3
No files found.
src/pkg/bignum/nrdiv_test.go
View file @
d2829faa
...
...
@@ -190,5 +190,5 @@ func TestNRDiv(t *testing.T) {
idiv
(
t
,
7484890589595
,
7484890589594
);
div
(
t
,
Fact
(
100
),
Fact
(
91
));
div
(
t
,
Fact
(
1000
),
Fact
(
991
));
//div(t, Fact(10000), Fact(9991)); // takes too long - disabled for now
//div(t, Fact(10000), Fact(9991)); // takes too long - disabled for now
}
src/pkg/bytes/buffer_test.go
View file @
d2829faa
src/pkg/bytes/bytes_test.go
View file @
d2829faa
...
...
@@ -241,18 +241,14 @@ func TestMap(t *testing.T) {
// Run a couple of awful growth/shrinkage tests
a
:=
tenRunes
(
'a'
);
// 1. Grow. This triggers two reallocations in Map.
maxRune
:=
func
(
rune
int
)
int
{
return
unicode
.
MaxRune
;
};
maxRune
:=
func
(
rune
int
)
int
{
return
unicode
.
MaxRune
};
m
:=
Map
(
maxRune
,
Bytes
(
a
));
expect
:=
tenRunes
(
unicode
.
MaxRune
);
if
string
(
m
)
!=
expect
{
t
.
Errorf
(
"growing: expected %q got %q"
,
expect
,
m
);
}
// 2. Shrink
minRune
:=
func
(
rune
int
)
int
{
return
'a'
;
};
minRune
:=
func
(
rune
int
)
int
{
return
'a'
};
m
=
Map
(
minRune
,
Bytes
(
tenRunes
(
unicode
.
MaxRune
)));
expect
=
a
;
if
string
(
m
)
!=
expect
{
...
...
src/pkg/debug/elf/file.go
View file @
d2829faa
src/pkg/debug/proc/proc_linux.go
View file @
d2829faa
...
...
@@ -220,7 +220,7 @@ func (e *newThreadError) String() string {
return
fmt
.
Sprintf
(
"newThread wait wanted pid %v and signal %v, got %v and %v"
,
e
.
Pid
,
e
.
StopSignal
(),
e
.
wantPid
,
e
.
wantSig
);
}
type
ProcessExited
struct
{}
type
ProcessExited
struct
{}
func
(
p
ProcessExited
)
String
()
string
{
return
"process exited"
;
...
...
@@ -852,12 +852,8 @@ func (t *thread) stepAsync(ready chan os.Error) os.Error {
return
err
;
}
t
.
setState
(
singleStepping
);
t
.
onStop
(
func
()
{
ready
<-
nil
;
},
func
(
err
os
.
Error
)
{
ready
<-
err
;
});
t
.
onStop
(
func
()
{
ready
<-
nil
},
func
(
err
os
.
Error
)
{
ready
<-
err
});
return
nil
;
}
...
...
@@ -1100,9 +1096,7 @@ func (p *process) WaitStop() os.Error {
}
p
.
transitionHandlers
.
Push
(
h
);
};
h
.
onErr
=
func
(
err
os
.
Error
)
{
ready
<-
err
;
};
h
.
onErr
=
func
(
err
os
.
Error
)
{
ready
<-
err
};
p
.
transitionHandlers
.
Push
(
h
);
return
nil
;
});
...
...
@@ -1114,9 +1108,7 @@ func (p *process) WaitStop() os.Error {
}
func
(
p
*
process
)
Stop
()
os
.
Error
{
err
:=
p
.
do
(
func
()
os
.
Error
{
return
p
.
stopAsync
();
});
err
:=
p
.
do
(
func
()
os
.
Error
{
return
p
.
stopAsync
()
});
if
err
!=
nil
{
return
err
;
}
...
...
src/pkg/go/doc/doc.go
View file @
d2829faa
src/pkg/image/png/reader.go
View file @
d2829faa
src/pkg/os/exec.go
View file @
d2829faa
src/pkg/os/path_test.go
View file @
d2829faa
src/pkg/path/path_test.go
View file @
d2829faa
...
...
@@ -156,13 +156,13 @@ var tree = &Node{
&
Node
{
"u"
,
nil
,
0
},
&
Node
{
"v"
,
nil
,
0
},
},
0
}
0
,
},
0
}
},
0
0
,
},
},
0
,
}
func
walkTree
(
n
*
Node
,
path
string
,
f
func
(
path
string
,
n
*
Node
))
{
...
...
@@ -187,9 +187,7 @@ func makeTree(t *testing.T) {
}
func
markTree
(
n
*
Node
)
{
walkTree
(
n
,
""
,
func
(
path
string
,
n
*
Node
)
{
n
.
mark
++
;
});
walkTree
(
n
,
""
,
func
(
path
string
,
n
*
Node
)
{
n
.
mark
++
});
}
func
checkMarks
(
t
*
testing
.
T
)
{
...
...
@@ -210,7 +208,7 @@ func mark(name string) {
});
}
type
TestVisitor
struct
{}
type
TestVisitor
struct
{}
func
(
v
*
TestVisitor
)
VisitDir
(
path
string
,
d
*
os
.
Dir
)
bool
{
mark
(
d
.
Name
);
...
...
src/pkg/strconv/decimal_test.go
View file @
d2829faa
src/pkg/template/template_test.go
View file @
d2829faa
...
...
@@ -59,9 +59,7 @@ func plus1(v interface{}) string {
}
func
writer
(
f
func
(
interface
{})
string
)
(
func
(
io
.
Writer
,
interface
{},
string
))
{
return
func
(
w
io
.
Writer
,
v
interface
{},
format
string
)
{
io
.
WriteString
(
w
,
f
(
v
));
};
return
func
(
w
io
.
Writer
,
v
interface
{},
format
string
)
{
io
.
WriteString
(
w
,
f
(
v
))
};
}
...
...
src/pkg/time/time_test.go
View file @
d2829faa
src/pkg/time/zoneinfo.go
View file @
d2829faa
src/pkg/unicode/script_test.go
View file @
d2829faa
...
...
@@ -98,7 +98,8 @@ var inTest = []T{
}
var
outTest
=
[]
T
{
// not really worth being thorough
T
{
0x20
,
"Telugu"
}}
T
{
0x20
,
"Telugu"
},
}
var
inCategoryTest
=
[]
T
{
T
{
0x0081
,
"Cc"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment