Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,885 for found$ (0.15 sec)

  1. src/internal/stringslite/strings.go

    }
    
    func Cut(s, sep string) (before, after string, found bool) {
    	if i := Index(s, sep); i >= 0 {
    		return s[:i], s[i+len(sep):], true
    	}
    	return s, "", false
    }
    
    func CutPrefix(s, prefix string) (after string, found bool) {
    	if !HasPrefix(s, prefix) {
    		return s, false
    	}
    	return s[len(prefix):], true
    }
    
    func CutSuffix(s, suffix string) (before string, found bool) {
    	if !HasSuffix(s, suffix) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 01:23:42 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. src/internal/trace/batchcursor.go

    		return 0, 0, fmt.Errorf("found invalid event type: %v", typ)
    	}
    	e.typ = typ
    
    	// Get spec.
    	spec := &specs[typ]
    	if len(spec.Args) == 0 || !spec.IsTimedEvent {
    		return 0, 0, fmt.Errorf("found event without a timestamp: type=%v", typ)
    	}
    	n := 1
    
    	// Read timestamp diff.
    	ts, nb := binary.Uvarint(b[n:])
    	if nb <= 0 {
    		return 0, 0, fmt.Errorf("found invalid uvarint for timestamp")
    	}
    	n += nb
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/schemas_test.go

    	}
    	if len(cust.Fields) != 4 {
    		t.Errorf("incorrect number of fields, got %d, wanted 4", len(cust.Fields))
    	}
    	for _, f := range cust.Fields {
    		prop, found := ts.Properties[f.Name]
    		if !found {
    			t.Errorf("type field not found in schema, field: %s", f.Name)
    		}
    		fdv := f.DefaultValue()
    		if prop.Default.Object != nil {
    			pdv := types.DefaultTypeAdapter.NativeToValue(prop.Default.Object)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. pkg/kubelet/userns/userns_manager.go

    	}
    	prevFrom, found := m.usedBy[pod]
    	if found && prevFrom != from {
    		return fmt.Errorf("different user namespace range already used by pod %q", pod)
    	}
    	index := int(from/userNsLength) - m.off
    	if index < 0 || index >= m.len {
    		return fmt.Errorf("id %v is out of range", from)
    	}
    	// if the pod wasn't found then verify the range is free.
    	if !found && m.used.Has(index) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/java/JavaConfigurationCachePerformanceTest.groovy

                        def found = Files.lines(buildLog.toPath()).withCloseable { lines ->
                            def pattern = Pattern.compile(tag)
                            lines.anyMatch { line -> pattern.matcher(line).find() }
                        }
                        if (!found) {
                            assertTrue("Configuration cache log '$tag' not found in '$buildLog'\n\n$buildLog.text", found)
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 14:54:56 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/symbols/symbolTestUtils.kt

    /*
     * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
     * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
     */
    
    package org.jetbrains.kotlin.analysis.api.impl.base.test.cases.symbols
    
    import org.jetbrains.kotlin.analysis.api.KaSession
    import org.jetbrains.kotlin.analysis.api.symbols.KaCallableSymbol
    import org.jetbrains.kotlin.analysis.api.symbols.KaFileSymbol
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/rename_entrypoint_to_main.cc

            candidate_funcs.push_back(entrypoint.second);
          }
        }
    
        if (candidate_funcs.empty()) {
          return fail(module, "No entrypoints found");
        }
        if (candidate_funcs.size() > 1) {
          return fail(module, "Too many entrypoints found");
        }
        // Found entrypoint
        Builder builder(candidate_funcs[0]);
        candidate_funcs[0].setName(builder.getStringAttr("main"));
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testerrors/errors_test.go

    		t.Errorf("expected cgo to fail but it succeeded")
    	}
    
    	lines := bytes.Split(out, []byte("\n"))
    	for _, re := range errors {
    		found := false
    		for _, line := range lines {
    			if re.Match(line) {
    				t.Logf("found match for %#q: %q", re, line)
    				found = true
    				break
    			}
    		}
    		if !found {
    			t.Errorf("expected error output to contain %#q", re)
    		}
    	}
    
    	if t.Failed() {
    		t.Logf("actual output:\n%s", out)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/visibilityChecker/AbstractVisibilityCheckerTest.kt

     * classes called `UseSite` will be found as well.
     */
    private const val USE_SITE_ELEMENT_NAME = "usesite"
    
    /**
     * Checks whether a declaration is visible from a specific use-site file and element.
     *
     * The declaration symbol is found via a symbol name at the bottom of the test file, such as `// class: Declaration` (see [SymbolByFqName]).
     */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu May 23 16:12:19 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. internal/event/target/postgresql_test.go

    )
    
    // TestPostgreSQLRegistration checks if postgres driver
    // is registered and fails otherwise.
    func TestPostgreSQLRegistration(t *testing.T) {
    	var found bool
    	for _, drv := range sql.Drivers() {
    		if drv == "postgres" {
    			found = true
    			break
    		}
    	}
    	if !found {
    		t.Fatal("postgres driver not registered")
    	}
    }
    
    func TestPsqlTableNameValidation(t *testing.T) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Apr 24 17:51:07 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top