- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for 0M (0.42 sec)
-
istioctl/pkg/writer/table/writer_test.go
w.AddRow(newTestObject("baz", "qux", "2.0")) w.AddRow(newTestObject("qux", "quux", "3")) w.Flush() expected := "NAME NAMESPACE VERSION\n" + "foo \x1b[32mbar\x1b[0m 1.0\n" + "baz \x1b[32mqux\x1b[0m 2.0\n" + "qux \x1b[32mquux\x1b[0m 3\n" if got.String() != expected { t.Errorf("got %q, want %q", got.String(), expected) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Oct 08 04:41:42 UTC 2022 - 1.6K bytes - Viewed (0) -
tools/go-ordered-test
# Supported `go test` flags: -v, -race, -run, -count. All others are ignored (-timeout, etc) set -u red='\e[0;31m' green='\e[0;32m' yellow='\e[0;33m' clr='\e[0m' binary="${1}" RUN="." COUNT=1 VERBOSE="" while [[ "$#" -gt 0 ]]; do case $1 in -test.v=true) VERBOSE=true ;; -test.run=*) RUN="${1#-test.run=}" ;;
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 04 23:04:41 UTC 2022 - 1.7K bytes - Viewed (0) -
istioctl/pkg/util/formatting/formatter_test.go
"the castle is too old", ) msgs := diag.Messages{firstMsg, secondMsg} output, _ := Print(msgs, LogFormat, true) g.Expect(output).To(Equal( "\033[1;31mError\033[0m [B1] (SoapBubble) Explosion accident: the bubble is too big\n" + "\033[33mWarning\033[0m [C1] (GrandCastle) Collapse danger: the castle is too old", )) } func TestFormatter_PrintJSON(t *testing.T) { g := NewWithT(t) firstMsg := diag.NewMessage(
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/printers/warningprinter.go
limitations under the License. */ package printers import ( "fmt" "io" ) const ( yellowColor = "\u001b[33;1m" resetColor = "\u001b[0m" ) type WarningPrinter struct { // out is the writer to output warnings to out io.Writer // opts contains options controlling warning output opts WarningPrinterOptions }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 23 11:10:15 UTC 2022 - 1.6K bytes - Viewed (0) -
cluster/addons/addon-manager/kube-addons-test.sh
} function teardown() { retry kubectl delete namespace "${TEST_NS}" } function error() { echo -e "\e[31m$*\e[0m" } function echo_green() { echo -e "\e[32m$*\e[0m" } function echo_blue() { echo -e "\e[34m$*\e[0m" } function test_create_resource_reconcile() { local limitrange read -r -d '' limitrange << EOF apiVersion: "v1" kind: "LimitRange" metadata:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Apr 25 02:46:18 UTC 2021 - 9.3K bytes - Viewed (0) -
tools/go-stress-test
# * -stress.time: exit successfully after this much time has passed. Default 10s. set -u red='\e[0;31m' green='\e[0;32m' yellow='\e[0;33m' clr='\e[0m' binary="${1}" RUN="." COUNT=1 RUNS=1000 TIME=10s while [[ "$#" -gt 0 ]]; do case $1 in -test.v=true) VERBOSE=true ;; -test.run=*) RUN="${1#-test.run=}" ;;
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Feb 04 23:04:41 UTC 2022 - 2.3K bytes - Viewed (0) -
maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/VersionTest.java
assertOrder(X_GT_Y, "1.0a-1", "1.0"); assertOrder(X_GT_Y, "1.0b.1", "1.0"); assertOrder(X_GT_Y, "1.0b-1", "1.0"); assertOrder(X_GT_Y, "1.0m.1", "1.0"); assertOrder(X_GT_Y, "1.0m-1", "1.0"); } @Test void testUnknownQualifierOrdering() { assertOrder(X_LT_Y, "1-abc", "1-abcd"); assertOrder(X_LT_Y, "1-abc", "1-bcd");
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue May 21 09:54:32 UTC 2024 - 17.1K bytes - Viewed (0) -
istioctl/pkg/util/formatting/formatter.go
} prefix, ok := colorPrefixes[m.Type.Level()] if !ok { return "" } return prefix } func colorSuffix(colorize bool) string { if !colorize { return "" } return "\033[0m" } func IstioctlColorDefault(writer io.Writer) bool { if strings.EqualFold(termEnvVar.Get(), "dumb") { return false } file, ok := writer.(*os.File) if ok {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jul 11 02:41:45 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/pprof/readlineui.go
fmt.Fprint(r.term, text) } // colorize prints the msg in red using ANSI color escapes. func colorize(msg string) string { const red = 31 var colorEscape = fmt.Sprintf("\033[0;%dm", red) var colorResetEscape = "\033[0m" return colorEscape + msg + colorResetEscape } // IsTerminal reports whether the UI is known to be tied to an // interactive terminal (as opposed to being redirected to a file).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 30 18:10:36 UTC 2023 - 3.3K bytes - Viewed (0) -
logger/logger.go
"io" "log" "os" "time" "gorm.io/gorm/utils" ) // ErrRecordNotFound record not found error var ErrRecordNotFound = errors.New("record not found") // Colors const ( Reset = "\033[0m" Red = "\033[31m" Green = "\033[32m" Yellow = "\033[33m" Blue = "\033[34m" Magenta = "\033[35m" Cyan = "\033[36m" White = "\033[37m" BlueBold = "\033[34;1m"
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Nov 07 02:19:41 UTC 2023 - 5.8K bytes - Viewed (0)