Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for expectation (0.96 sec)

  1. src/internal/trace/testtrace/expectation.go

    	"regexp"
    	"strconv"
    	"strings"
    )
    
    // Expectation represents the expected result of some operation.
    type Expectation struct {
    	failure      bool
    	errorMatcher *regexp.Regexp
    }
    
    // ExpectSuccess returns an Expectation that trivially expects success.
    func ExpectSuccess() *Expectation {
    	return new(Expectation)
    }
    
    // Check validates whether err conforms to the expectation. Returns
    // an error if it does not conform.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/ArtifactResolutionExpectationSpec.groovy

        /**
         * Setup expectation when resolving with module metadata
         * @param expectation
         */
        void withModuleMetadata(@DelegatesTo(value = SingleArtifactResolutionResultSpec, strategy = Closure.DELEGATE_FIRST) Closure<?> expectation) {
            expectation.resolveStrategy = Closure.DELEGATE_FIRST
            expectation.delegate = withModuleMetadataSpec
            expectation()
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/util/proxy/proxy_test.go

    						Type: "unsupported",
    					},
    				},
    			},
    			endpoints: nil,
    
    			clusterMode:  expectation{error: true},
    			endpointMode: expectation{error: true},
    		},
    		{
    			name:      "missing service",
    			services:  nil,
    			endpoints: nil,
    
    			clusterMode:  expectation{error: true},
    			endpointMode: expectation{error: true},
    		},
    	}
    
    	for _, test := range tests {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 07:16:27 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  4. platforms/software/maven/src/testFixtures/groovy/org/gradle/integtests/fixtures/publish/maven/AbstractMavenPublishIntegTest.groovy

            MavenArtifactResolutionExpectation expectation = new MavenArtifactResolutionExpectation(dependencyNotation, this)
            expectation.dependency = convertDependencyNotation(dependencyNotation)
            expectationSpec.resolveStrategy = Closure.DELEGATE_FIRST
            expectationSpec.delegate = expectation
            expectationSpec()
    
            expectation.validate()
    
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  5. platforms/software/ivy/src/testFixtures/groovy/org/gradle/api/publish/ivy/AbstractIvyPublishIntegTest.groovy

            IvyArtifactResolutionExpectation expectation = new IvyArtifactResolutionExpectation(dependencyNotation)
            expectation.dependency = convertDependencyNotation(dependencyNotation)
            expectationSpec.resolveStrategy = Closure.DELEGATE_FIRST
            expectationSpec.delegate = expectation
            expectationSpec()
    
            expectation.validate()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testerrors/argposition_test.go

    				Line:   42,
    				Column: 91,
    			},
    		},
    	}
    	for _, decl := range f.Decls {
    		if fdecl, ok := decl.(*ast.FuncDecl); ok {
    			ast.Walk(&Visitor{expectation, fset, t}, fdecl.Body)
    		}
    	}
    	for ident, positions := range expectation {
    		for _, position := range positions {
    			if !position.Visited {
    				t.Errorf("Position %d:%d missed for %s ident", position.Line, position.Column, ident)
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top