Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for expectation (1.29 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. 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)
  3. 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)
  4. 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)
  5. cmd/signature-v4-utils.go

    			//
    			// According to
    			// http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.20
    			// Expect header is always of form:
    			//
    			//   Expect       =  "Expect" ":" 1#expectation
    			//   expectation  =  "100-continue" | expectation-extension
    			//
    			// So it safe to assume that '100-continue' is what would
    			// be sent, for the time being keep this work around.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. src/internal/runtime/exithook/hooks.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package exithook provides limited support for on-exit cleanup.
    //
    // CAREFUL! The expectation is that Add should only be called
    // from a safe context (e.g. not an error/panic path or signal
    // handler, preemption enabled, allocation allowed, write barriers
    // allowed, etc), and that the exit function F will be invoked under
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  7. src/internal/trace/reader_test.go

    				ev.Task()
    			case trace.EventSync:
    			case trace.EventStackSample:
    			case trace.EventBad:
    			}
    		}
    	})
    }
    
    func testReader(t *testing.T, tr io.Reader, exp *testtrace.Expectation) {
    	r, err := trace.NewReader(tr)
    	if err != nil {
    		if err := exp.Check(err); err != nil {
    			t.Error(err)
    		}
    		return
    	}
    	v := testtrace.NewValidator()
    	for {
    		ev, err := r.ReadEvent()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. src/internal/trace/internal/testgen/go122/trace.go

    	// Trace data state.
    	ver             version.Version
    	names           map[string]event.Type
    	specs           []event.Spec
    	events          []raw.Event
    	gens            []*Generation
    	validTimestamps bool
    
    	// Expectation state.
    	bad      bool
    	badMatch *regexp.Regexp
    }
    
    // NewTrace creates a new trace.
    func NewTrace() *Trace {
    	ver := version.Go122
    	return &Trace{
    		names:           event.Names(ver.Specs()),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  9. cmd/object-api-utils_test.go

    		if actual != test.result {
    			t.Errorf("Test %d - expected %v but received %v",
    				i+1, test.result, actual)
    		}
    	}
    }
    
    // Tests RemoveStandardStorageClass method. Expectation is metadata map
    // should be cleared of x-amz-storage-class, if it is set to STANDARD
    func TestRemoveStandardStorageClass(t *testing.T) {
    	tests := []struct {
    		name     string
    		metadata map[string]string
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  10. cmd/object-lambda-handlers.go

    	"Request URI Too Long":            http.StatusRequestURITooLong,
    	"Unsupported Media Type":          http.StatusUnsupportedMediaType,
    	"Requested Range Not Satisfiable": http.StatusRequestedRangeNotSatisfiable,
    	"Expectation Failed":              http.StatusExpectationFailed,
    	"I'm a teapot":                    http.StatusTeapot,
    	"Misdirected Request":             http.StatusMisdirectedRequest,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top