Skip to content

Commit

Permalink
Update gofmt, bazel, and deps using bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
chaodaiG committed Mar 27, 2020
1 parent 8c8ac8c commit 9861037
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 16 deletions.
13 changes: 12 additions & 1 deletion prow/spyglass/lenses/junit/BUILD.bazel
@@ -1,4 +1,4 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("@build_bazel_rules_nodejs//:defs.bzl", "rollup_bundle")
load("@npm_bazel_typescript//:index.bzl", "ts_library")

Expand Down Expand Up @@ -59,3 +59,14 @@ filegroup(
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

go_test(
name = "go_default_test",
srcs = ["lens_test.go"],
embed = [":go_default_library"],
deps = [
"//prow/spyglass/lenses:go_default_library",
"@com_github_google_go_cmp//cmp:go_default_library",
"@com_github_googlecloudplatform_testgrid//metadata/junit:go_default_library",
],
)
30 changes: 15 additions & 15 deletions prow/spyglass/lenses/junit/lens_test.go
Expand Up @@ -118,7 +118,7 @@ func TestGetJvd(t *testing.T) {
NumTests: 1,
Passed: nil,
Failed: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand Down Expand Up @@ -146,7 +146,7 @@ func TestGetJvd(t *testing.T) {
JVD{
NumTests: 1,
Passed: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand Down Expand Up @@ -179,7 +179,7 @@ func TestGetJvd(t *testing.T) {
Passed: nil,
Failed: nil,
Skipped: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand Down Expand Up @@ -210,7 +210,7 @@ func TestGetJvd(t *testing.T) {
JVD{
NumTests: 2,
Passed: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand All @@ -222,7 +222,7 @@ func TestGetJvd(t *testing.T) {
},
},
Failed: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand Down Expand Up @@ -259,7 +259,7 @@ func TestGetJvd(t *testing.T) {
JVD{
NumTests: 2,
Passed: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand All @@ -271,7 +271,7 @@ func TestGetJvd(t *testing.T) {
},
},
Failed: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand Down Expand Up @@ -307,7 +307,7 @@ func TestGetJvd(t *testing.T) {
NumTests: 1,
Passed: nil,
Failed: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand Down Expand Up @@ -338,7 +338,7 @@ func TestGetJvd(t *testing.T) {
JVD{
NumTests: 1,
Passed: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand Down Expand Up @@ -369,7 +369,7 @@ func TestGetJvd(t *testing.T) {
JVD{
NumTests: 1,
Passed: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand Down Expand Up @@ -406,7 +406,7 @@ func TestGetJvd(t *testing.T) {
Failed: nil,
Skipped: nil,
Flaky: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand Down Expand Up @@ -440,7 +440,7 @@ func TestGetJvd(t *testing.T) {
Failed: nil,
Skipped: nil,
Flaky: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand Down Expand Up @@ -479,7 +479,7 @@ func TestGetJvd(t *testing.T) {
Failed: nil,
Skipped: nil,
Flaky: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand Down Expand Up @@ -514,7 +514,7 @@ func TestGetJvd(t *testing.T) {
JVD{
NumTests: 2,
Passed: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand All @@ -526,7 +526,7 @@ func TestGetJvd(t *testing.T) {
},
},
Failed: []TestResult{
TestResult{
{
Junit: JunitResult{
junit.Result{
Name: "fake_test_0",
Expand Down

0 comments on commit 9861037

Please sign in to comment.