Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 165 for picard (0.16 sec)

  1. 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)
  2. platforms/software/ivy/src/test/groovy/org/gradle/api/publish/ivy/internal/artifact/IvyArtifactNotationParserFactoryTest.groovy

        }
    
        def "creates lazy IvyArtifact 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
    - 8.6K bytes
    - Viewed (0)
  3. internal/ioutil/discard.go

    import (
    	"io"
    )
    
    // Discard is just like io.Discard without the io.ReaderFrom compatible
    // implementation which is buggy on NUMA systems, we have to use a simpler
    // io.Writer implementation alone avoids also unnecessary buffer copies,
    // and as such incurred latencies.
    var Discard io.Writer = discard{}
    
    // discard is /dev/null for Golang.
    type discard struct{}
    
    func (discard) Write(p []byte) (int, error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Nov 06 22:26:08 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. src/log/slog/internal/benchmarks/benchmarks_test.go

    		name     string
    		h        slog.Handler
    		skipRace bool
    	}{
    		{"disabled", disabledHandler{}, false},
    		{"async discard", newAsyncHandler(), true},
    		{"fastText discard", newFastTextHandler(io.Discard), false},
    		{"Text discard", slog.NewTextHandler(io.Discard, nil), false},
    		{"JSON discard", slog.NewJSONHandler(io.Discard, nil), false},
    	} {
    		logger := slog.New(handler.h)
    		b.Run(handler.name, func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 18:32:54 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. src/log/log_test.go

    		buf.Reset()
    		l.Println(testString)
    	}
    }
    
    // discard is identical to io.Discard,
    // but copied here to avoid the io.Discard optimization in Logger.
    type discard struct{}
    
    func (discard) Write(p []byte) (int, error) {
    	return len(p), nil
    }
    
    func BenchmarkConcurrent(b *testing.B) {
    	l := New(discard{}, "prefix: ", Ldate|Ltime|Lmicroseconds|Llongfile|Lmsgprefix)
    	var group sync.WaitGroup
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 20:04:37 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/dependencysubstitution/DependencySubstitutionsInternal.java

        void setMutationValidator(MutationValidator validator);
    
        DependencySubstitutionsInternal copy();
    
        /**
         * Discard all state held by this container.
         */
        void discard();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/cli-runtime/pkg/genericiooptions/io_options.go

    }
    
    // NewTestIOStreamsDiscard returns a valid IOStreams that just discards
    func NewTestIOStreamsDiscard() IOStreams {
    	in := &bytes.Buffer{}
    	return IOStreams{
    		In:     in,
    		Out:    io.Discard,
    		ErrOut: io.Discard,
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 05 14:05:23 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/image/png/writer_test.go

    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		Encode(io.Discard, img)
    	}
    }
    
    func BenchmarkEncodeNRGBA(b *testing.B) {
    	img := image.NewNRGBA(image.Rect(0, 0, 640, 480))
    	if img.Opaque() {
    		b.Fatal("expected image not to be opaque")
    	}
    	b.SetBytes(640 * 480 * 4)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		Encode(io.Discard, img)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 14 08:14:05 UTC 2022
    - 8.9K bytes
    - Viewed (0)
  9. src/io/ioutil/ioutil.go

    func NopCloser(r io.Reader) io.ReadCloser {
    	return io.NopCloser(r)
    }
    
    // Discard is an io.Writer on which all Write calls succeed
    // without doing anything.
    //
    // Deprecated: As of Go 1.16, this value is simply [io.Discard].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/compress/lzw/writer_test.go

    			b.SetBytes(int64(n))
    			for i := 0; i < b.N; i++ {
    				w := NewWriter(io.Discard, LSB, 8)
    				w.Write(buf1)
    				w.Close()
    			}
    		})
    		b.Run(fmt.Sprint("1e-Reuse", e), func(b *testing.B) {
    			b.SetBytes(int64(n))
    			w := NewWriter(io.Discard, LSB, 8)
    			for i := 0; i < b.N; i++ {
    				w.Write(buf1)
    				w.Close()
    				w.(*Writer).Reset(io.Discard, LSB, 8)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 12 11:00:47 UTC 2021
    - 5.7K bytes
    - Viewed (0)
Back to top