File tree 9 files changed +113
-63
lines changed
9 files changed +113
-63
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ go 1.15
4
4
5
5
require (
6
6
github.com/gobuffalo/flect v0.2.2
7
- github.com/onsi/ginkgo v1.12 .0
8
- github.com/onsi/gomega v1.9.0
7
+ github.com/onsi/ginkgo v1.15 .0
8
+ github.com/onsi/gomega v1.10.5
9
9
github.com/spf13/afero v1.2.2
10
10
github.com/spf13/cobra v0.0.7
11
11
github.com/spf13/pflag v1.0.5
12
- golang.org/x/tools v0.0.0-20200403190813-44a64ad78b9b
12
+ golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e
13
13
sigs.k8s.io/yaml v1.2.0
14
14
)
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -19,18 +19,12 @@ package filesystem
19
19
import (
20
20
"errors"
21
21
"path/filepath"
22
- "testing"
23
22
24
23
. "github.com/onsi/ginkgo"
25
24
. "github.com/onsi/ginkgo/extensions/table"
26
25
. "github.com/onsi/gomega"
27
26
)
28
27
29
- func TestErrors (t * testing.T ) {
30
- RegisterFailHandler (Fail )
31
- RunSpecs (t , "Error suite" )
32
- }
33
-
34
28
var _ = Describe ("Errors" , func () {
35
29
var (
36
30
path = filepath .Join ("path" , "to" , "file" )
Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright 2021 The Kubernetes Authors.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ package filesystem
18
+
19
+ import (
20
+ "testing"
21
+
22
+ . "github.com/onsi/ginkgo"
23
+ . "github.com/onsi/gomega"
24
+ )
25
+
26
+ func TestFilesystem (t * testing.T ) {
27
+ RegisterFailHandler (Fail )
28
+ RunSpecs (t , "Filesystem suite" )
29
+ }
Original file line number Diff line number Diff line change @@ -18,17 +18,11 @@ package filesystem
18
18
19
19
import (
20
20
"os"
21
- "testing"
22
21
23
22
. "github.com/onsi/ginkgo"
24
23
. "github.com/onsi/gomega"
25
24
)
26
25
27
- func TestFileSystem (t * testing.T ) {
28
- RegisterFailHandler (Fail )
29
- RunSpecs (t , "FileSystem suite" )
30
- }
31
-
32
26
var _ = Describe ("FileSystem" , func () {
33
27
Describe ("New" , func () {
34
28
const (
Original file line number Diff line number Diff line change @@ -20,17 +20,11 @@ import (
20
20
"bytes"
21
21
"errors"
22
22
"path/filepath"
23
- "testing"
24
23
25
24
. "github.com/onsi/ginkgo"
26
25
. "github.com/onsi/gomega"
27
26
)
28
27
29
- func TestMockFileSystem (t * testing.T ) {
30
- RegisterFailHandler (Fail )
31
- RunSpecs (t , "MockFileSystem suite" )
32
- }
33
-
34
28
//nolint:dupl
35
29
var _ = Describe ("MockFileSystem" , func () {
36
30
var (
Original file line number Diff line number Diff line change @@ -19,18 +19,12 @@ package machinery
19
19
import (
20
20
"errors"
21
21
"path/filepath"
22
- "testing"
23
22
24
23
. "github.com/onsi/ginkgo"
25
24
. "github.com/onsi/ginkgo/extensions/table"
26
25
. "github.com/onsi/gomega"
27
26
)
28
27
29
- func TestErrors (t * testing.T ) {
30
- RegisterFailHandler (Fail )
31
- RunSpecs (t , "Error suite" )
32
- }
33
-
34
28
var _ = Describe ("Errors" , func () {
35
29
var (
36
30
path = filepath .Join ("path" , "to" , "file" )
Original file line number Diff line number Diff line change
1
+ /*
2
+ Copyright 2021 The Kubernetes Authors.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ package machinery
18
+
19
+ import (
20
+ "testing"
21
+
22
+ . "github.com/onsi/ginkgo"
23
+ . "github.com/onsi/gomega"
24
+ )
25
+
26
+ func TestMachinery (t * testing.T ) {
27
+ RegisterFailHandler (Fail )
28
+ RunSpecs (t , "Machinery suite" )
29
+ }
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ package machinery
17
17
import (
18
18
"bytes"
19
19
"errors"
20
- "testing"
21
20
22
21
. "github.com/onsi/ginkgo"
23
22
. "github.com/onsi/ginkgo/extensions/table"
@@ -28,11 +27,6 @@ import (
28
27
"sigs.k8s.io/kubebuilder/v3/pkg/plugins/internal/filesystem"
29
28
)
30
29
31
- func TestScaffold (t * testing.T ) {
32
- RegisterFailHandler (Fail )
33
- RunSpecs (t , "Scaffold suite" )
34
- }
35
-
36
30
var _ = Describe ("Scaffold" , func () {
37
31
Describe ("NewScaffold" , func () {
38
32
var (
You can’t perform that action at this time.
0 commit comments