-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Rename PruneOptions to Pruner (it does the work itself) - Rename variables and internal methods for clarity/consistency - Extract deleteObject method to improve readability - Rename GetObject to getObject (only used internally and by test) - Modify log messages for readability - Add log support for prune tests - Make log messages more consistent
- Loading branch information
Showing
8 changed files
with
146 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright 2021 The Kubernetes Authors. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package prune | ||
|
||
import ( | ||
"os" | ||
"testing" | ||
|
||
"k8s.io/klog/v2" | ||
) | ||
|
||
// TestMain executes the tests for this package, with optional logging. | ||
// To see all logs, use: | ||
// go test sigs.k8s.io/cli-utils/pkg/apply/prune -v -args -v=5 | ||
func TestMain(m *testing.M) { | ||
klog.InitFlags(nil) | ||
os.Exit(m.Run()) | ||
} |
Oops, something went wrong.