- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 486 for nicard (0.11 sec)
-
cmd/clicheck/check_cli_conventions.go
cmdsanity "k8s.io/kubectl/pkg/cmd/util/sanity" ) func main() { var errorCount int kubectl := cmd.NewKubectlCommand(cmd.KubectlOptions{IOStreams: genericiooptions.IOStreams{In: os.Stdin, Out: io.Discard, ErrOut: io.Discard}}) errors := cmdsanity.RunCmdChecks(kubectl, cmdsanity.AllCmdChecks, []string{}) for _, err := range errors { errorCount++ fmt.Fprintf(os.Stderr, " %d. %s\n", errorCount, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 05 14:05:23 UTC 2023 - 1.4K bytes - Viewed (0) -
src/image/gif/writer_test.go
Delay: make([]int, 1), } if err := EncodeAll(io.Discard, g0); err == nil { t.Error("expected error from mismatched delay and image slice lengths") } g1 := &GIF{ Image: images, Delay: make([]int, len(images)), Disposal: make([]byte, 1), } for i := range g1.Disposal { g1.Disposal[i] = DisposalNone } if err := EncodeAll(io.Discard, g1); err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 19K bytes - Viewed (0) -
logger/logger.go
Error(context.Context, string, ...interface{}) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) } var ( // Discard logger will print any log to io.Discard Discard = New(log.New(io.Discard, "", log.LstdFlags), Config{}) // Default Default logger Default = New(log.New(os.Stdout, "\r\n", log.LstdFlags), Config{ SlowThreshold: 200 * time.Millisecond,
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Tue Nov 07 02:19:41 UTC 2023 - 5.8K bytes - Viewed (0) -
src/html/template/clone_test.go
wantErr := uncloned.Execute(io.Discard, nil) // toClone must be the same as uncloned. It has to be recreated from scratch, // since cloning cannot occur after execution. toClone := Must(New("").Funcs(funcs).Parse("{{customFunc}}")) cloned := Must(toClone.Clone()) gotErr := cloned.Execute(io.Discard, nil) if wantErr.Error() != gotErr.Error() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:48:16 UTC 2022 - 8K bytes - Viewed (0) -
src/go/printer/performance_test.go
initialize() } b.ReportAllocs() b.SetBytes(fileSize) for i := 0; i < b.N; i++ { testprint(io.Discard, fileNode) } } func BenchmarkPrintDecl(b *testing.B) { if declNode == nil { initialize() } b.ReportAllocs() b.SetBytes(declSize) for i := 0; i < b.N; i++ { testprint(io.Discard, declNode) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:10:10 UTC 2022 - 1.8K bytes - Viewed (0) -
src/bufio/bufio_test.go
br.ReadRune() br.Discard(1) if err := br.UnreadRune(); err == nil { t.Error("UnreadRune didn't fail after Discard") } } func TestNoUnreadByteAfterDiscard(t *testing.T) { br := NewReader(strings.NewReader("example")) br.ReadByte() br.Discard(1) if err := br.UnreadByte(); err == nil { t.Error("UnreadByte didn't fail after Discard") } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 10 18:56:01 UTC 2023 - 51.5K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue60933.go
import ( "io" "os" ) func g[T any](...T) {} // Interface and non-interface types do not match. func _() { var file *os.File g(file, io /* ERROR "type io.Writer of io.Discard does not match inferred type *os.File for T" */ .Discard) g(file, os.Stdout) } func _() { var a *os.File var b any g(a, a) g(a, b /* ERROR "type any of b does not match inferred type *os.File for T" */) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 26 18:33:36 UTC 2023 - 1.5K bytes - Viewed (0) -
src/text/tabwriter/tabwriter_test.go
"a\tb\t\td\n" + // hard tabs - do not discard column "a\tb\t\td\te\n" + "a\n" + "a\tb\tc\td\n" + "a\tb\tc\td\te\n", "a\tb\t\td\n" + "a\tb\t\td\te\n" + "a\n" + "a\tb\tc\td\n" + "a\tb\tc\td\te\n", }, { "16c debug", 100, 100, 0, '\t', DiscardEmptyColumns | Debug, "a\tb\t\td\n" + // hard tabs - do not discard column "a\tb\t\td\te\n" + "a\n" +
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 16:46:34 UTC 2024 - 13.8K bytes - Viewed (0) -
cmd/storage-datatypes_test.go
MountPath: "/tmp/drive1", ID: "uuid", Error: "", } b.SetBytes(1) b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { err := msgp.Encode(io.Discard, &v) if err != nil { b.Fatal(err) } } } func BenchmarkEncodeDiskInfoGOB(b *testing.B) { v := DiskInfo{ Total: 1000, Free: 1000, Used: 1000,
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 9.4K bytes - Viewed (0) -
platforms/software/maven/src/test/groovy/org/gradle/api/publish/maven/internal/artifact/MavenArtifactNotationParserFactoryTest.groovy
} def "creates lazy MavenArtifact for Provider<RegularFile> notation"() { def provider = Mock(ProviderInternal) def file = Stub(File) { getName() >> 'picard.txt' } def regularFile = Mock(RegularFile) when: def artifact = parser.parseNotation(provider) then: 0 * provider._ when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 14:02:46 UTC 2023 - 9.3K bytes - Viewed (0)