Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 169 for expectation (0.3 sec)

  1. platforms/software/resources-gcs/src/integTest/groovy/org/gradle/integtests/resource/gcs/fixtures/GcsServer.groovy

                        assertRequest(httpStub, request)
                        if (expectation.run) {
                            println("This expectation for the request [${request.method} :${request.pathInfo}] was already handled - skipping")
                            return
                        }
                        if (!baseRequest.isHandled()) {
                            expectation.atomicRun.set(true)
                            action.handle(request, response)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ResourceHandlerWrapper.java

        private final boolean autoRelease;
        private boolean started;
        private boolean received;
    
        ResourceHandlerWrapper(Lock lock, ResourceExpectation expectation, WaitPrecondition owner, boolean isAutoRelease) {
            this.lock = lock;
            handler = expectation.create(this);
            this.owner = owner;
            this.autoRelease = isAutoRelease;
        }
    
        public String getDisplayName() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/internal/trace/testtrace/format.go

    package testtrace
    
    import (
    	"bytes"
    	"fmt"
    	"internal/trace/raw"
    	"internal/txtar"
    	"io"
    )
    
    // ParseFile parses a test file generated by the testgen package.
    func ParseFile(testPath string) (io.Reader, *Expectation, error) {
    	ar, err := txtar.ParseFile(testPath)
    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to read test file for %s: %v", testPath, err)
    	}
    	if len(ar.Files) != 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. platforms/software/resources-s3/src/integTest/groovy/org/gradle/integtests/resource/s3/fixtures/S3Server.groovy

                        assertRequest(httpStub, request)
                        if (expectation.run) {
                            println("This expectation for the request [${request.method} :${request.pathInfo}] was already handled - skipping")
                            return
                        }
                        if (!((Request) request).isHandled()) {
                            expectation.atomicRun.set(true)
                            action.handle(request, response)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  5. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServer.groovy

        }
    
        private HttpResourceInteraction addOneRequestExpecation(String path, boolean matchPrefix, Collection<String> methods, Action action, OneRequestServerExpectation expectation) {
            expectations << expectation
            add(path, matchPrefix, methods, new AbstractHandler() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsFixture.groovy

                modelsCreated(new ModelRequestExpectation(path, modelNames))
            }
    
            void modelsCreated(ModelRequestExpectation expectation) {
                projectsConfigured(expectation.path)
                runsTasks = false
                loadsOnStore = false
                models.add(expectation)
            }
    
            void modelsQueriedAndNotPresent(String... paths) {
                for (path in paths) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. platforms/software/resources-gcs/src/main/java/org/gradle/internal/resource/transport/gcp/gcs/ResourceMapper.java

                storageObject.getContentType(),
                storageObject.getEtag(),
                null // we cannot use md5 instead of sha1 here because cache will get corrupted due to its expectation of sha1 hashes
            );
        }
    
        private ResourceMapper() {
            throw new AssertionError("No instances");
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/execarchive.go

    package ld
    
    import (
    	"os"
    	"os/exec"
    	"path/filepath"
    	"syscall"
    )
    
    const syscallExecSupported = true
    
    // execArchive invokes the archiver tool with syscall.Exec(), with
    // the expectation that this is the last thing that takes place
    // in the linking operation.
    func (ctxt *Link) execArchive(argv []string) {
    	var err error
    	argv0 := argv[0]
    	if filepath.Base(argv0) == argv0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 876 bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheParallelTaskIntegrationTest.groovy

        @Rule
        BlockingHttpServer server = new BlockingHttpServer()
    
        @Requires(value = IntegTestPreconditions.NotParallelExecutor, reason = """
    Don't run in parallel mode, as the expectation for the setup build are incorrect and running in parallel
    does not really make any difference to the coverage
    """)
        def "runs tasks in different projects in parallel by default"() {
            server.start()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http/CallServerInterceptor.kt

                val bufferedRequestBody = exchange.createRequestBody(request, true).buffer()
                requestBody.writeTo(bufferedRequestBody)
              } else {
                // Write the request body if the "Expect: 100-continue" expectation was met.
                val bufferedRequestBody = exchange.createRequestBody(request, false).buffer()
                requestBody.writeTo(bufferedRequestBody)
                bufferedRequestBody.close()
              }
            } else {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top