Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for dec (0.13 sec)

  1. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    		}
    	}
    	// Test when i is {0,0}
    	table2 := []struct {
    		x      *inf.Dec
    		y      *inf.Dec
    		expect int
    	}{
    		{dec(0, 0).Dec, dec(0, 0).Dec, 0},
    		{nil, dec(0, 0).Dec, 0},
    		{dec(0, 0).Dec, nil, 0},
    		{nil, nil, 0},
    		{nil, dec(10, 0).Dec, -1},
    		{nil, dec(-10, 0).Dec, 1},
    		{dec(10, 0).Dec, nil, 1},
    		{dec(-10, 0).Dec, nil, -1},
    	}
    	for _, testCase := range table2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/encoding/json/decode_test.go

    				t.Fatalf("%s: unmarshalTest.ptr %#v is not a pointer to a zero value", tt.Where, tt.ptr)
    			}
    
    			dec := NewDecoder(bytes.NewReader(in))
    			if tt.useNumber {
    				dec.UseNumber()
    			}
    			if tt.disallowUnknownFields {
    				dec.DisallowUnknownFields()
    			}
    			if err := dec.Decode(v.Interface()); !equalError(err, tt.err) {
    				t.Fatalf("%s: Decode error:\n\tgot:  %v\n\twant: %v", tt.Where, err, tt.err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  3. src/runtime/mgc.go

    		dlink = d.link
    		d.link = nil
    	}
    	sched.deferpool = nil
    	unlock(&sched.deferlock)
    }
    
    // Timing
    
    // itoaDiv formats val/(10**dec) into buf.
    func itoaDiv(buf []byte, val uint64, dec int) []byte {
    	i := len(buf) - 1
    	idec := i - dec
    	for val >= 10 || i >= idec {
    		buf[i] = byte(val%10 + '0')
    		i--
    		if i == idec {
    			buf[i] = '.'
    			i--
    		}
    		val /= 10
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  4. src/time/time_test.go

    	{2011, 12, -12, 7, 56, 35, 0, Local, 1321631795},                // Dec -21 7:56:35
    	{2012, 1, -43, 7, 56, 35, 0, Local, 1321631795},                 // Jan -52 7:56:35 2012
    	{2012, int(January - 2), 18, 7, 56, 35, 0, Local, 1321631795},   // (Jan-2) 18 7:56:35 2012
    	{2010, int(December + 11), 18, 7, 56, 35, 0, Local, 1321631795}, // (Dec+11) 18 7:56:35 2010
    }
    
    func TestDate(t *testing.T) {
    	for _, tt := range dateTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:13:47 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  5. cmd/bucket-handlers.go

    		var b bytes.Buffer
    		if name != "file" {
    			if http.CanonicalHeaderKey(name) == http.CanonicalHeaderKey("x-minio-fanout-list") {
    				dec := json.NewDecoder(part)
    
    				// while the array contains values
    				for dec.More() {
    					var m minio.PutObjectFanOutEntry
    					if err := dec.Decode(&m); err != nil {
    						part.Close()
    						apiErr := errorCodes.ToAPIErr(ErrMalformedPOSTRequest)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  6. src/encoding/xml/marshal_test.go

    	var in, out bytes.Buffer
    	in.WriteString(`<?xml version="1.0" encoding="UTF-8"?>
    <?Target Instruction?>
    <root>
    </root>
    `)
    	dec := NewDecoder(&in)
    	enc := NewEncoder(&out)
    	for tok, err := dec.Token(); err == nil; tok, err = dec.Token() {
    		err = enc.EncodeToken(tok)
    		if err != nil {
    			t.Fatalf("enc.EncodeToken: Unable to encode token (%#v), %v", tok, err)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  7. internal/bucket/lifecycle/lifecycle_test.go

    				NewerNoncurrentVersions: 4,
    				set:                     true,
    			},
    		},
    	}
    	for i, tc := range testCases {
    		var got NoncurrentVersionExpiration
    		dec := xml.NewDecoder(strings.NewReader(tc.xml))
    		if err := dec.Decode(&got); err != nil || got != tc.expected {
    			if err != nil {
    				t.Fatalf("%d: Failed to unmarshal xml %v", i+1, err)
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KaFirResolver.kt

                }
                val incOrDecOperationKind = psi.getInOrDecOperationKind()
                val baseExpression = deparenthesize(psi.baseExpression)
    
                // handle inc/dec/ with array access convention
                if (fir is FirFunctionCall && fir.calleeReference.name == OperatorNameConventions.SET && baseExpression is KtArrayAccessExpression) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 73K bytes
    - Viewed (0)
  9. pkg/scheduler/internal/queue/scheduling_queue.go

    	podID := u.keyFunc(pod)
    	if _, exists := u.podInfoMap[podID]; exists {
    		if gated && u.gatedRecorder != nil {
    			u.gatedRecorder.Dec()
    		} else if !gated && u.unschedulableRecorder != nil {
    			u.unschedulableRecorder.Dec()
    		}
    	}
    	delete(u.podInfoMap, podID)
    }
    
    // get returns the QueuedPodInfo if a pod with the same key as the key of the given "pod"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/css/manual.css

    code[data-lang="text"] .pun,
    code[data-lang="text"] .opn,
    code[data-lang="text"] .clo,
    code[data-lang="text"] .tag,
    code[data-lang="text"] .atn,
    code[data-lang="text"] .atv,
    code[data-lang="text"] .dec,
    code[data-lang="text"] .var,
    code[data-lang="text"] .fun {
    	color: #000;
    }
    
    .dark-mode {
    
    	code[data-lang="text"] .pln,
    	code[data-lang="text"] .str,
    	code[data-lang="text"] .kwd,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 25 05:15:02 UTC 2024
    - 72.6K bytes
    - Viewed (0)
Back to top