Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 188 for const2 (1.15 sec)

  1. src/net/http/fs_test.go

    		}
    	}
    }
    
    func TestFileServerEscapesNames(t *testing.T) { run(t, testFileServerEscapesNames) }
    func testFileServerEscapesNames(t *testing.T, mode testMode) {
    	const dirListPrefix = "<!doctype html>\n<meta name=\"viewport\" content=\"width=device-width\">\n<pre>\n"
    	const dirListSuffix = "\n</pre>\n"
    	tests := []struct {
    		name, escaped string
    	}{
    		{`simple_name`, `<a href="simple_name">simple_name</a>`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  2. pkg/apis/admissionregistration/types.go

    type FailurePolicyType string
    
    const (
    	// Ignore means that an error calling the webhook is ignored.
    	Ignore FailurePolicyType = "Ignore"
    	// Fail means that an error calling the webhook causes the admission to fail.
    	Fail FailurePolicyType = "Fail"
    )
    
    // MatchPolicyType specifies the type of match policy
    type MatchPolicyType string
    
    const (
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 20:14:19 UTC 2024
    - 52.6K bytes
    - Viewed (0)
  3. cmd/xl-storage-format-v2.go

    	// Current version being written.
    	xlVersionCurrent [4]byte
    )
    
    //go:generate msgp -file=$GOFILE -unexported
    //go:generate stringer -type VersionType,ErasureAlgo -output=xl-storage-format-v2_string.go $GOFILE
    
    const (
    	// Breaking changes.
    	// Newer versions cannot be read by older software.
    	// This will prevent downgrades to incompatible versions.
    	xlVersionMajor = 1
    
    	// Non breaking changes.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 29 19:14:09 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  4. src/syscall/syscall_windows.go

    import (
    	errorspkg "errors"
    	"internal/asan"
    	"internal/bytealg"
    	"internal/itoa"
    	"internal/msan"
    	"internal/oserror"
    	"internal/race"
    	"runtime"
    	"sync"
    	"unsafe"
    )
    
    type Handle uintptr
    
    const InvalidHandle = ^Handle(0)
    
    // StringToUTF16 returns the UTF-16 encoding of the UTF-8 string s,
    // with a terminating NUL added. If s contains a NUL byte this
    // function panics instead of returning an error.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  5. src/strings/strings_test.go

    			}
    		}
    	}
    
    	const maxInt = int(^uint(0) >> 1)
    
    	runTestCases("", []testCase{
    		0: {"--", -2147483647, "negative"},
    		1: {"", maxInt, ""},
    		2: {"-", 10, ""},
    		3: {"gopher", 0, ""},
    		4: {"-", -1, "negative"},
    		5: {"--", -102, "negative"},
    		6: {string(make([]byte, 255)), int((^uint(0))/255 + 1), "overflow"},
    	})
    
    	const is64Bit = 1<<(^uintptr(0)>>63)/2 != 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  6. src/time/time.go

    	// determine the minute, hour, month, day, and year
    	// that correspond to this Time.
    	// The nil location means UTC.
    	// All UTC times are represented with loc==nil, never loc==&utcLoc.
    	loc *Location
    }
    
    const (
    	hasMonotonic = 1 << 63
    	maxWall      = wallToInternal + (1<<33 - 1) // year 2157
    	minWall      = wallToInternal               // year 1885
    	nsecMask     = 1<<30 - 1
    	nsecShift    = 30
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 50.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    	clocktesting "k8s.io/utils/clock/testing"
    	"k8s.io/utils/ptr"
    
    	"github.com/google/go-cmp/cmp"
    )
    
    func TestMain(m *testing.M) {
    	klog.InitFlags(nil)
    	os.Exit(m.Run())
    }
    
    type mockDecision int
    
    const (
    	decisionNoQueuingExecute mockDecision = iota
    	decisionQueuingExecute
    	decisionCancelWait
    	decisionReject
    	decisionSkipFilter
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  8. src/go/parser/parser.go

    	p.next()
    }
    
    // ----------------------------------------------------------------------------
    // Parsing support
    
    func (p *parser) printTrace(a ...any) {
    	const dots = ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "
    	const n = len(dots)
    	pos := p.file.Position(p.pos)
    	fmt.Printf("%5d:%3d: ", pos.Line, pos.Column)
    	i := 2 * p.indent
    	for i > n {
    		fmt.Print(dots)
    		i -= n
    	}
    	// i <= n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_client_test.go

    // print when a handshake completes if run with “-state”.
    const opensslEndOfHandshake = "SSL_accept:SSLv3/TLS write finished"
    
    // opensslReadKeyUpdate is a message that the “openssl s_server” tool will
    // print when a KeyUpdate message is received if run with “-state”.
    const opensslReadKeyUpdate = "SSL_accept:TLSv1.3 read client key update"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  10. src/syscall/zerrors_darwin_amd64.go

    // mkerrors.sh -m64
    // Code generated by the command above; DO NOT EDIT.
    
    // Created by cgo -godefs - DO NOT EDIT
    // cgo -godefs -- -m64 _const.go
    
    //go:build amd64 && darwin
    
    package syscall
    
    const (
    	AF_APPLETALK                      = 0x10
    	AF_CCITT                          = 0xa
    	AF_CHAOS                          = 0x5
    	AF_CNT                            = 0x15
    	AF_COIP                           = 0x14
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 55.3K bytes
    - Viewed (0)
Back to top