Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 2,136 for writes (0.14 sec)

  1. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/modulecache/artifacts/TwoStageArtifactsCacheTest.groovy

            when:
            twoStageArtifactsCache.get(key)
    
            then:
            1 * writeCache.get(key) >> Stub(AbstractArtifactsCache.ModuleArtifactsCacheEntry)
            0 * readCache.get(key)
        }
    
        def "writes are delegated to the writable cache"() {
            def entry = Stub(AbstractArtifactsCache.ModuleArtifactsCacheEntry)
            when:
            twoStageArtifactsCache.store(key, entry)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/BlockStore.java

        <T extends BlockPayload> T read(BlockPointer pos, Class<T> payloadType);
    
        /**
         * Writes a block to this store, adding the block if required.
         */
        void write(BlockPayload block);
    
        /**
         * Adds a new block to this store. Allocates space for the block, but does not write the contents of the block
         * until {@link #write(BlockPayload)} is called.
         */
        void attach(BlockPayload block);
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. src/encoding/binary/binary.go

    // with blank (_) field names.
    func Write(w io.Writer, order ByteOrder, data any) error {
    	// Fast path for basic types and slices.
    	if n, bs := intDataSize(data); n != 0 {
    		if bs == nil {
    			bs = make([]byte, n)
    			encodeFast(bs, order, data)
    		}
    
    		_, err := w.Write(bs)
    		return err
    	}
    
    	// Fallback to reflect-based encoding.
    	v := reflect.Indirect(reflect.ValueOf(data))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:29:31 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/PluginXmlFactory.java

     * under the License.
     */
    package org.apache.maven.api.services.xml;
    
    import org.apache.maven.api.annotations.Experimental;
    import org.apache.maven.api.plugin.descriptor.PluginDescriptor;
    
    /**
     * Reads and writes a {@link PluginDescriptor} object to/from XML.
     *
     * @since 4.0.0
     */
    @Experimental
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Feb 09 17:13:31 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/plugins/internal/SimpleTemplateOperationSpec.groovy

            when:
            new SimpleTemplateOperation(new URL("file://some/file"), null, [:])
            then:
            def e = thrown(BuildInitException)
            e.message == "Target file must not be null"
        }
    
        def "writes file from template with binding support"() {
            setup:
            def targetFile = new File(temporaryFolder, "test.out")
            def templateURL = getClass().getResource("SimpleTemplateOperationSpec-binding.template")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. src/runtime/trace/trace_test.go

    		t.Fatalf("failed to start tracing: %v", err)
    	}
    	Stop()
    	size := buf.Len()
    	if size == 0 {
    		t.Fatalf("trace is empty")
    	}
    	time.Sleep(100 * time.Millisecond)
    	if size != buf.Len() {
    		t.Fatalf("trace writes after stop: %v -> %v", size, buf.Len())
    	}
    	saveTrace(t, buf, "TestTraceStartStop")
    }
    
    func TestTraceDoubleStart(t *testing.T) {
    	if IsEnabled() {
    		t.Skip("skipping because -test.trace is set")
    	}
    	Stop()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. src/runtime/tracetype.go

    	// Insert the pointer to the type itself.
    	id, _ := t.tab.put(noescape(unsafe.Pointer(&typ)), goarch.PtrSize)
    	return id
    }
    
    // dump writes all previously cached types to trace buffers and
    // releases all memory and resets state. It must only be called once the caller
    // can guarantee that there are no more writers to the table.
    func (t *traceTypeTable) dump(gen uintptr) {
    	w := unsafeTraceExpWriter(gen, nil, traceExperimentAllocFree)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. src/internal/coverage/cformat/format.go

    	})
    }
    
    // EmitTextual writes the accumulated coverage data in the legacy
    // cmd/cover text format to the writer 'w'. We sort the data items by
    // importpath, source file, and line number before emitting (this sorting
    // is not explicitly mandated by the format, but seems like a good idea
    // for repeatable/deterministic dumps).
    func (fm *Formatter) EmitTextual(w io.Writer) error {
    	if fm.cm == coverage.CtrModeInvalid {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. testing/smoke-test/src/smokeTest/groovy/org/gradle/smoketests/BNDSmokeTest.groovy

    pluginManagement {
        plugins {
            id "biz.aQute.bnd.builder" version "${TestedVersions.bnd}"
        }
    }
    
    rootProject.name = 'bnd-smoke-test'
    """
        }
    
        def "BND plugin writes direct external dependency versions to the manifest"() {
            given:
            def commonsVersion = "3.12.0"
            def calculatedCommonsVersionRange = "[3.12,4)"
            buildFile << """
    ${addBNDBuilderPlugin()}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. src/encoding/xml/marshal.go

    			return err
    		}
    	}
    	s.trim(nil)
    	return p.cachedWriteError()
    }
    
    // Write implements io.Writer
    func (p *printer) Write(b []byte) (n int, err error) {
    	if p.closed && p.err == nil {
    		p.err = errors.New("use of closed Encoder")
    	}
    	if p.err == nil {
    		n, p.err = p.w.Write(b)
    	}
    	return n, p.err
    }
    
    // WriteString implements io.StringWriter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top