Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
8b8c103b
Commit
8b8c103b
authored
Feb 03, 2010
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build - misc ... vs ...T fixes
TBR=r CC=golang-dev
https://golang.org/cl/198081
parent
cd4a6842
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
19 deletions
+8
-19
ascii85_test.go
src/pkg/encoding/ascii85/ascii85_test.go
+2
-6
base64_test.go
src/pkg/encoding/base64/base64_test.go
+2
-6
git_test.go
src/pkg/encoding/git85/git_test.go
+2
-6
datafmt.go
src/pkg/exp/datafmt/datafmt.go
+2
-1
No files found.
src/pkg/encoding/ascii85/ascii85_test.go
View file @
8b8c103b
...
...
@@ -8,7 +8,6 @@ import (
"bytes"
"io/ioutil"
"os"
"reflect"
"strings"
"testing"
)
...
...
@@ -34,11 +33,8 @@ var pairs = []testpair{
var
bigtest
=
pairs
[
len
(
pairs
)
-
1
]
func
testEqual
(
t
*
testing
.
T
,
msg
string
,
args
...
)
bool
{
v
:=
reflect
.
NewValue
(
args
)
.
(
*
reflect
.
StructValue
)
v1
:=
v
.
Field
(
v
.
NumField
()
-
2
)
v2
:=
v
.
Field
(
v
.
NumField
()
-
1
)
if
v1
.
Interface
()
!=
v2
.
Interface
()
{
func
testEqual
(
t
*
testing
.
T
,
msg
string
,
args
...
interface
{})
bool
{
if
args
[
len
(
args
)
-
2
]
!=
args
[
len
(
args
)
-
1
]
{
t
.
Errorf
(
msg
,
args
)
return
false
}
...
...
src/pkg/encoding/base64/base64_test.go
View file @
8b8c103b
...
...
@@ -8,7 +8,6 @@ import (
"bytes"
"io/ioutil"
"os"
"reflect"
"strings"
"testing"
)
...
...
@@ -48,11 +47,8 @@ var bigtest = testpair{
"VHdhcyBicmlsbGlnLCBhbmQgdGhlIHNsaXRoeSB0b3Zlcw=="
,
}
func
testEqual
(
t
*
testing
.
T
,
msg
string
,
args
...
)
bool
{
v
:=
reflect
.
NewValue
(
args
)
.
(
*
reflect
.
StructValue
)
v1
:=
v
.
Field
(
v
.
NumField
()
-
2
)
v2
:=
v
.
Field
(
v
.
NumField
()
-
1
)
if
v1
.
Interface
()
!=
v2
.
Interface
()
{
func
testEqual
(
t
*
testing
.
T
,
msg
string
,
args
...
interface
{})
bool
{
if
args
[
len
(
args
)
-
2
]
!=
args
[
len
(
args
)
-
1
]
{
t
.
Errorf
(
msg
,
args
)
return
false
}
...
...
src/pkg/encoding/git85/git_test.go
View file @
8b8c103b
...
...
@@ -8,7 +8,6 @@ import (
"bytes"
"io/ioutil"
"os"
"reflect"
"strings"
"testing"
)
...
...
@@ -17,11 +16,8 @@ type testpair struct {
decoded
,
encoded
string
}
func
testEqual
(
t
*
testing
.
T
,
msg
string
,
args
...
)
bool
{
v
:=
reflect
.
NewValue
(
args
)
.
(
*
reflect
.
StructValue
)
v1
:=
v
.
Field
(
v
.
NumField
()
-
2
)
v2
:=
v
.
Field
(
v
.
NumField
()
-
1
)
if
v1
.
Interface
()
!=
v2
.
Interface
()
{
func
testEqual
(
t
*
testing
.
T
,
msg
string
,
args
...
interface
{})
bool
{
if
args
[
len
(
args
)
-
2
]
!=
args
[
len
(
args
)
-
1
]
{
t
.
Errorf
(
msg
,
args
)
return
false
}
...
...
src/pkg/exp/datafmt/datafmt.go
View file @
8b8c103b
...
...
@@ -721,7 +721,8 @@ func (f Format) Sprint(args ...) string {
var
buf
bytes
.
Buffer
_
,
err
:=
f
.
Fprint
(
&
buf
,
nil
,
args
)
if
err
!=
nil
{
fmt
.
Fprintf
(
&
buf
,
"--- Sprint(%s) failed: %v"
,
fmt
.
Sprint
(
args
),
err
)
var
i
interface
{}
=
args
fmt
.
Fprintf
(
&
buf
,
"--- Sprint(%s) failed: %v"
,
fmt
.
Sprint
(
i
),
err
)
}
return
buf
.
String
()
}
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