Add missing TestMain() functions

This commit is contained in:
Mikhail Mazurskiy 2019-01-30 15:27:39 +11:00
parent 4ce1fb7d40
commit ca38fba0af
No known key found for this signature in database
GPG Key ID: 93551ECC96E2F568
5 changed files with 61 additions and 0 deletions

View File

@ -15,6 +15,7 @@ go_test(
"fifo_test.go",
"heap_test.go",
"index_test.go",
"main_test.go",
"mutation_detector_test.go",
"processor_listener_test.go",
"reflector_test.go",

View File

@ -0,0 +1,29 @@
/*
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package cache
import (
"math/rand"
"os"
"testing"
"time"
)
func TestMain(m *testing.M) {
rand.Seed(time.Now().UnixNano())
os.Exit(m.Run())
}

View File

@ -35,6 +35,7 @@ go_test(
srcs = [
"event_test.go",
"events_cache_test.go",
"main_test.go",
],
embed = [":go_default_library"],
deps = [

View File

@ -93,6 +93,7 @@ go_test(
"azure_vmss_test.go",
"azure_wrap_test.go",
"azure_zones_test.go",
"main_test.go",
],
embed = [":go_default_library"],
deps = [

View File

@ -0,0 +1,29 @@
/*
Copyright 2018 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package azure
import (
"math/rand"
"os"
"testing"
"time"
)
func TestMain(m *testing.M) {
rand.Seed(time.Now().UnixNano())
os.Exit(m.Run())
}