Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 186 for qsub (0.04 sec)

  1. security/pkg/util/jwtutil_test.go

    			} else if err != nil && tc.expectedErr != nil && err.Error() != tc.expectedErr.Error() {
    				t.Errorf("%s: Got error \"%v\", expected error \"%v\"", id, err, tc.expectedErr)
    			} else if err == nil && exp.Sub(tc.expectedExp) != time.Duration(0) {
    				t.Errorf("%s: Got expiration time: %s, expected expiration time: %s",
    					id, exp.String(), tc.expectedExp.String())
    			}
    		})
    	}
    }
    
    func TestGetAud(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 16:07:11 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. cmd/prune-junit-xml/prunexml.go

    )
    
    func main() {
    	maxTextSize := flag.Int("max-text-size", 1, "maximum size of attribute or text (in MB)")
    	pruneTests := flag.Bool("prune-tests", true,
    		"prune's xml files to display only top level tests and failed sub-tests")
    	flag.Parse()
    	for _, path := range flag.Args() {
    		fmt.Printf("processing junit xml file : %s\n", path)
    		xmlReader, err := os.Open(path)
    		if err != nil {
    			panic(err)
    		}
    		defer xmlReader.Close()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 12:26:00 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. pkg/config/validation/envoyfilter/envoyfilter.go

    							// sub filter match is supported only for applyTo HTTP_FILTER
    							if cp.ApplyTo != networking.EnvoyFilter_HTTP_FILTER {
    								errs = validation.AppendValidation(errs, fmt.Errorf("Envoy filter: subfilter match can be used with applyTo HTTP_FILTER only")) // nolint: stylecheck
    								continue
    							}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. internal/s3select/sql/timestampfuncs.go

    func dateDiff(timePart string, ts1, ts2 time.Time) (*Value, error) {
    	if ts2.Before(ts1) {
    		v, err := dateDiff(timePart, ts2, ts1)
    		if err == nil {
    			v.negate()
    		}
    		return v, err
    	}
    
    	duration := ts2.Sub(ts1)
    	y1, m1, d1 := ts1.Date()
    	y2, m2, d2 := ts2.Date()
    
    	switch timePart {
    	case timePartYear:
    		dy := int64(y2 - y1)
    		if m2 > m1 || (m2 == m1 && d2 >= d1) {
    			return FromInt(dy), nil
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/admission.go

    // Validate makes admission decisions while enforcing quota
    func (a *QuotaAdmission) Validate(ctx context.Context, attr admission.Attributes, o admission.ObjectInterfaces) (err error) {
    	// ignore all operations that correspond to sub-resource actions
    	if attr.GetSubresource() != "" {
    		return nil
    	}
    	// ignore all operations that are not namespaced or creation of namespaces
    	if attr.GetNamespace() == "" || isNamespaceCreation(attr) {
    		return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 23 10:34:50 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/util/shufflesharding/shufflesharding.go

    // If `hand` has the correct length as Dealer's handSize, it will be used as-is and no allocations will be made.
    // If `hand` is nil or too small, it will be extended (performing an allocation).
    // If `hand` is too large, a sub-slice will be returned.
    func (d *Dealer) DealIntoHand(hashValue uint64, hand []int) []int {
    	h := hand[:0]
    	d.Deal(hashValue, func(card int) { h = append(h, card) })
    	return h
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 23 08:38:03 UTC 2019
    - 4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    }
    
    // Sub subtracts the provided quantity from the current value in place. If the current
    // value is zero, the format of the quantity will be updated to the format of y.
    func (q *Quantity) Sub(y Quantity) {
    	q.s = ""
    	if q.IsZero() {
    		q.Format = y.Format
    	}
    	if q.d.Dec == nil && y.d.Dec == nil && q.i.Sub(y.i) {
    		return
    	}
    	q.ToDec().d.Dec.Sub(q.d.Dec, y.AsDec())
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  8. src/internal/fuzz/encoding.go

    		case *ast.BasicLit:
    			if op.Op != token.SUB {
    				return nil, fmt.Errorf("unsupported operation on int/float: %v", op.Op)
    			}
    			// Special case for negative numbers.
    			val = op.Op.String() + lit.Value // e.g. "-" + "124"
    			kind = lit.Kind
    		case *ast.Ident:
    			if lit.Name != "Inf" {
    				return nil, fmt.Errorf("expected operation on int or float type")
    			}
    			if op.Op == token.SUB {
    				val = "-Inf"
    			} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/metrics/metrics.go

    		latencies: metrics.NewHistogramVec(
    			&metrics.HistogramOpts{
    				Namespace:      namespace,
    				Subsystem:      subsystem,
    				Name:           "step_admission_duration_seconds",
    				Help:           "Admission sub-step latency histogram in seconds, broken out for each operation and API resource and step type (validate or admit).",
    				Buckets:        []float64{0.005, 0.025, 0.1, 0.5, 1.0, 2.5},
    				StabilityLevel: metrics.STABLE,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 17:01:40 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  10. src/cmd/link/internal/benchmark/bench.go

    	if m == nil {
    		return
    	}
    
    	m.closeMark()
    
    	gcString := ""
    	if m.gc == GC {
    		gcString = "_GC"
    	}
    
    	var totTime time.Duration
    	for _, curMark := range m.marks {
    		dur := curMark.endT.Sub(curMark.startT)
    		totTime += dur
    		fmt.Fprintf(w, "%s 1 %d ns/op", makeBenchString(curMark.name+gcString), dur.Nanoseconds())
    		fmt.Fprintf(w, "\t%d B/op", curMark.endM.TotalAlloc-curMark.startM.TotalAlloc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top