Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 304 for Tstruct (0.15 sec)

  1. src/net/url/url_test.go

    		}
    	}
    }
    
    type timeoutError struct {
    	timeout bool
    }
    
    func (e *timeoutError) Error() string { return "timeout error" }
    func (e *timeoutError) Timeout() bool { return e.timeout }
    
    type temporaryError struct {
    	temporary bool
    }
    
    func (e *temporaryError) Error() string   { return "temporary error" }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  2. src/math/big/float_test.go

    	make := func(x int) *Float {
    		var f Float
    		if x != 0 {
    			f.SetInt64(int64(x))
    		}
    		// x == 0 translates into the zero value
    		return &f
    	}
    	for _, test := range []struct {
    		z, x, y, want int
    		opname        rune
    		op            func(z, x, y *Float) *Float
    	}{
    		{0, 0, 0, 0, '+', (*Float).Add},
    		{0, 1, 2, 3, '+', (*Float).Add},
    		{1, 2, 0, 2, '+', (*Float).Add},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  3. src/net/http/fs_test.go

    	"strconv"
    	"strings"
    	"testing"
    	"testing/fstest"
    	"time"
    )
    
    const (
    	testFile    = "testdata/file"
    	testFileLen = 11
    )
    
    type wantRange struct {
    	start, end int64 // range [start,end)
    }
    
    var ServeFileRangeTests = []struct {
    	r      string
    	code   int
    	ranges []wantRange
    }{
    	{r: "", code: StatusOK},
    	{r: "bytes=0-4", code: StatusPartialContent, ranges: []wantRange{{0, 5}}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

    #define GEN_PASS_DEF_LOWERSTATICTENSORLISTPASS
    #include "tensorflow/compiler/mlir/lite/transforms/passes.h.inc"
    
    namespace {
    
    /// Lower TensorList ops in functions for subsequent legalization.
    struct LowerStaticTensorListPass
        : public impl::LowerStaticTensorListPassBase<LowerStaticTensorListPass> {
      MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(LowerStaticTensorListPass)
    
      LowerStaticTensorListPass() = default;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    var SocketDisableIPv6 bool
    
    type RawSockaddrInet4 struct {
    	Family uint16
    	Port   uint16
    	Addr   [4]byte /* in_addr */
    	Zero   [8]uint8
    }
    
    type RawSockaddrInet6 struct {
    	Family   uint16
    	Port     uint16
    	Flowinfo uint32
    	Addr     [16]byte /* in6_addr */
    	Scope_id uint32
    }
    
    type RawSockaddr struct {
    	Family uint16
    	Data   [14]int8
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  6. pkg/controller/endpointslice/endpointslice_controller_test.go

    // TODO(mborsz): Migrate this test to mock clock when possible.
    func TestPodAddsBatching(t *testing.T) {
    	t.Parallel()
    
    	type podAdd struct {
    		delay time.Duration
    	}
    
    	tests := []struct {
    		name             string
    		batchPeriod      time.Duration
    		adds             []podAdd
    		finalDelay       time.Duration
    		wantRequestCount int
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 08:33:32 UTC 2024
    - 65.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    	_, err = LoadEncryptionConfig(ctx, invalidConfigWithTypo, false, "")
    	if got, wantSubString := errString(err), `strict decoding error: unknown field "resources[0].providers[3].kms.pandas"`; !strings.Contains(got, wantSubString) {
    		t.Fatalf("should result in strict decode error while parsing configuration file %q:\ngot: %q\nwant substring: %q", invalidConfigWithTypo, got, wantSubString)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  8. src/go/types/expr.go

    		switch utyp := coreType(base).(type) {
    		case *Struct:
    			// Prevent crash if the struct referred to is not yet set up.
    			// See analogous comment for *Array.
    			if utyp.fields == nil {
    				check.error(e, InvalidTypeCycle, "invalid recursive type")
    				goto Error
    			}
    			if len(e.Elts) == 0 {
    				break
    			}
    			// Convention for error messages on invalid struct literals:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  9. src/net/http/httputil/reverseproxy_test.go

    		t.Errorf("got body %q; expected %q", bodyBytes, expected)
    	}
    }
    
    type mockFlusher struct {
    	http.ResponseWriter
    	flushed bool
    }
    
    func (m *mockFlusher) Flush() {
    	m.flushed = true
    }
    
    type wrappedRW struct {
    	http.ResponseWriter
    }
    
    func (w *wrappedRW) Unwrap() http.ResponseWriter {
    	return w.ResponseWriter
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  10. src/runtime/mprof.go

    	profInsertLock mutex
    	// profBlockLock protects the contents of every blockRecord struct
    	profBlockLock mutex
    	// profMemActiveLock protects the active field of every memRecord struct
    	profMemActiveLock mutex
    	// profMemFutureLock is a set of locks that protect the respective elements
    	// of the future array of every memRecord struct
    	profMemFutureLock [len(memRecord{}.future)]mutex
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top