Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 52 for recursion (0.16 sec)

  1. cmd/xl-storage.go

    // deleteFile deletes a file or a directory if its empty unless recursive
    // is set to true. If the target is successfully deleted, it will recursively
    // move up the tree, deleting empty parent directories until it finds one
    // with files in it. Returns nil for a non-empty directory even when
    // recursive is set to false.
    func (s *xlStorage) deleteFile(basePath, deletePath string, recursive, immediate bool) error {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  2. src/runtime/pprof/pprof_test.go

    		// not be inlined in the caller.
    		//
    		// N.B. We're generating an impossible profile here, with a
    		// recursive inlineCalleeDump call. This is simulating a non-Go
    		// function that looks like an inlined Go function other than
    		// its recursive property. See pcDeck.tryAdd.
    		name: "directly_recursive_func_is_not_inlined",
    		input: []uint64{
    			3, 0, 500, // hz = 500. Must match the period.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  3. src/regexp/syntax/parse.go

    // It is somewhat arbitrarily chosen, but the idea is to be large enough
    // that no one will actually hit in real use but at the same time small enough
    // that recursion on the Regexp tree will not hit the 1GB Go stack limit.
    // The maximum amount of stack for a single recursive frame is probably
    // closer to 1kB, so this could potentially be raised, but it seems unlikely
    // that people have regexps nested even this deeply.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  4. src/go/printer/nodes.go

    	// nodeSize invokes the printer, which may invoke nodeSize
    	// recursively. For deep composite literal nests, this can
    	// lead to an exponential algorithm. Remember previous
    	// results to prune the recursion (was issue 1628).
    	if size, found := p.nodeSizes[n]; found {
    		return size
    	}
    
    	size = maxSize + 1 // assume n doesn't fit
    	p.nodeSizes[n] = size
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  5. tests/integration/security/fuzz/fuzzers/wfuzz/wordlist.yaml

    # Directory Traversal Fuzzing Code
    # Luca "ikki" Carettoni - v0.1
    #
    # 847 attack vectors, 8 levels of recursion (Unix-like, Windows)
    #
    # Usage: replace {FILE} with the absolute URI of a local resource, then use
    # your favourite web application fuzzer (e.g. wfuzz)
    # Generated from https://github.com/xmendez/wfuzz/blob/master/wordlist/vulns/dirTraversal.txt
    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: wordlist
    data:
      dirTraversal.txt: |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 23 20:55:02 UTC 2021
    - 86K bytes
    - Viewed (0)
  6. src/go/parser/parser.go

    	exprLev int  // < 0: in control clause, >= 0: in expression
    	inRhs   bool // if set, the parser is parsing a rhs expression
    
    	imports []*ast.ImportSpec // list of imports
    
    	// nestLev is used to track and limit the recursion depth
    	// during parsing.
    	nestLev int
    }
    
    func (p *parser) init(fset *token.FileSet, filename string, src []byte, mode Mode) {
    	p.file = fset.AddFile(filename, -1, len(src))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/api_test.go

    	T := pkg.Scope().Lookup("T").Type().(*Named)
    	if n := T.TypeParams().Len(); n != 1 {
    		t.Fatalf("expected 1 type parameter; found %d", n)
    	}
    
    	// instantiation should succeed (no endless recursion)
    	// even with a nil *Checker
    	res, err := Instantiate(nil, T, []Type{Typ[Int]}, false)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// instantiated type should point to itself
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  8. src/go/types/api_test.go

    	T := pkg.Scope().Lookup("T").Type().(*Named)
    	if n := T.TypeParams().Len(); n != 1 {
    		t.Fatalf("expected 1 type parameter; found %d", n)
    	}
    
    	// instantiation should succeed (no endless recursion)
    	// even with a nil *Checker
    	res, err := Instantiate(nil, T, []Type{Typ[Int]}, false)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// instantiated type should point to itself
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/testing/watcher_tests.go

    			watchKey := fmt.Sprintf("/pods/%s", tt.namespace)
    			key := watchKey + "/foo"
    			if !recursive {
    				watchKey = key
    			}
    
    			// Get the current RV from which we can start watching.
    			out := &example.PodList{}
    			if err := store.GetList(ctx, watchKey, storage.ListOptions{ResourceVersion: "", Predicate: tt.pred, Recursive: recursive}, out); err != nil {
    				t.Fatalf("List failed: %v", err)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    	createTestDir(t, fmt.Sprintf("%s/%s", tmpDir, "recursive/pod/pod_1"))
    	createTestDir(t, fmt.Sprintf("%s/%s", tmpDir, "recursive/rc/rc_1"))
    	createTestDir(t, fmt.Sprintf("%s/%s", tmpDir, "inode/hardlink"))
    	defer os.RemoveAll(tmpDir)
    
    	// create test files
    	writeTestFile(t, fmt.Sprintf("%s/recursive/pod/busybox.json", tmpDir), strings.Replace(aPod, "{id}", "0", -1))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
Back to top