mirror of
https://github.com/docker/compose.git
synced 2025-07-23 05:34:36 +02:00
Fix import
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
044e7f571d
commit
ac8975ea1e
@ -17,11 +17,11 @@
|
|||||||
package formatter
|
package formatter
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"go.uber.org/zap/buffer"
|
|
||||||
"gotest.tools/assert"
|
"gotest.tools/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ func TestPrint(t *testing.T) {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
b := &buffer.Buffer{}
|
b := &bytes.Buffer{}
|
||||||
assert.NilError(t, Print(testList, PRETTY, b, func(w io.Writer) {
|
assert.NilError(t, Print(testList, PRETTY, b, func(w io.Writer) {
|
||||||
for _, t := range testList {
|
for _, t := range testList {
|
||||||
_, _ = fmt.Fprintf(w, "%s\t%s\n", t.Name, t.Status)
|
_, _ = fmt.Fprintf(w, "%s\t%s\n", t.Name, t.Status)
|
||||||
|
1
go.mod
1
go.mod
@ -54,7 +54,6 @@ require (
|
|||||||
github.com/spf13/cobra v1.0.0
|
github.com/spf13/cobra v1.0.0
|
||||||
github.com/spf13/pflag v1.0.5
|
github.com/spf13/pflag v1.0.5
|
||||||
github.com/stretchr/testify v1.6.1
|
github.com/stretchr/testify v1.6.1
|
||||||
go.uber.org/zap v1.10.0
|
|
||||||
golang.org/x/mod v0.3.0
|
golang.org/x/mod v0.3.0
|
||||||
golang.org/x/net v0.0.0-20200822124328-c89045814202
|
golang.org/x/net v0.0.0-20200822124328-c89045814202
|
||||||
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43
|
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43
|
||||||
|
Loading…
x
Reference in New Issue
Block a user