Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 187 for DELETE (0.09 sec)

  1. src/cmd/fix/buildtag.go

    		return false
    	}
    
    	// File is already gofmt-ed, so we know that if there are +build lines,
    	// they are in a comment group that starts with a //go:build line followed
    	// by a blank line. While we cannot delete comments from an AST and
    	// expect consistent output in general, this specific case - deleting only
    	// some lines from a comment block - does format correctly.
    	fixed := false
    	for _, g := range f.Comments {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. src/go/types/resolver_test.go

    		ast.Inspect(f, func(n ast.Node) bool {
    			if x, ok := n.(*ast.Ident); ok {
    				var objects int
    				if _, found := uses[x]; found {
    					objects |= 1
    					delete(uses, x)
    				}
    				if _, found := defs[x]; found {
    					objects |= 2
    					delete(defs, x)
    				}
    				if objects == 0 {
    					t.Errorf("%s: unresolved identifier %s", fset.Position(x.Pos()), x.Name)
    				} else if objects == 3 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. src/runtime/map_test.go

    		m[i] = i
    	}
    	growflag := true
    	for k := range m {
    		if growflag {
    			// grow the table
    			for i := 100; i < 1000; i++ {
    				m[i] = i
    			}
    			// delete all odd keys
    			for i := 1; i < 1000; i += 2 {
    				delete(m, i)
    			}
    			growflag = false
    		} else {
    			if k&1 == 1 {
    				t.Error("odd value returned")
    			}
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  4. src/net/http/client_test.go

    		15: {method: "DELETE", serverStatus: 301, wantMethod: "GET"},
    		16: {method: "DELETE", serverStatus: 302, wantMethod: "GET"},
    		17: {method: "DELETE", serverStatus: 303, wantMethod: "GET"},
    		18: {method: "DELETE", serverStatus: 307, wantMethod: "DELETE"},
    		19: {method: "DELETE", serverStatus: 308, wantMethod: "DELETE"},
    
    		20: {method: "PUT", serverStatus: 301, wantMethod: "GET"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  5. src/expvar/expvar_test.go

    	}
    
    	colors.Delete("red")
    	if v := colors.Get("red"); v != nil {
    		t.Errorf("removed red, Get should return nil; got %v", v)
    	}
    	n = 0
    	colors.Do(func(KeyValue) { n++ })
    	if n != 1 {
    		t.Errorf("removed red, Do should invoke f 1 times; got %v", n)
    	}
    
    	colors.Delete("notfound")
    	n = 0
    	colors.Do(func(KeyValue) { n++ })
    	if n != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:46:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  6. src/internal/trace/oldtrace.go

    		}
    		mappedType = go122.EvGoCreate
    	case oldtrace.EvGoStart:
    		if it.preInit {
    			mappedType = go122.EvGoStatus
    			mappedArgs = timedEventArgs{ev.Args[0], ^uint64(0), uint64(go122.GoRunning)}
    			delete(it.createdPreInit, GoID(ev.Args[0]))
    		} else {
    			mappedType = go122.EvGoStart
    		}
    	case oldtrace.EvGoStartLabel:
    		it.extra = []Event{{
    			ctx: schedCtx{
    				G: GoID(ev.G),
    				P: ProcID(ev.P),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/builtins_test.go

    	{"copy", `var dst []byte; copy(dst, "hello")`, `func([]byte, string) int`},
    
    	{"delete", `var m map[string]bool; delete(m, "foo")`, `func(map[string]bool, string)`},
    	{"delete", `type (K string; V int); var m map[K]V; delete(m, "foo")`, `func(map[p.K]p.V, p.K)`},
    
    	{"imag", `_ = imag(1i)`, `invalid type`}, // constant
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  8. src/cmd/go/internal/test/testflag.go

    			explicitArgs = append(explicitArgs, fmt.Sprintf("-test.%s=%v", short, f.Value))
    
    			// This flag has been overridden explicitly, so don't forward its implicit
    			// value from GOFLAGS.
    			delete(addFromGOFLAGS, short)
    			delete(addFromGOFLAGS, "test."+short)
    		}
    
    		args = remainingArgs
    	}
    	if firstUnknownFlag != "" && testC {
    		fmt.Fprintf(os.Stderr, "go: unknown flag %s cannot be used with -c\n", firstUnknownFlag)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/go/printer/gobuild.go

    				block = append(block, tabwriter.Escape)
    				block = append(block, line...)
    				block = append(block, tabwriter.Escape, '\n')
    			}
    		}
    	}
    	block = append(block, '\n')
    
    	// Build sorted list of lines to delete from remainder of output.
    	toDelete := append(p.goBuild, p.plusBuild...)
    	slices.Sort(toDelete)
    
    	// Collect output after insertion point, with lines deleted, into after.
    	var after []byte
    	start := insert
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. src/internal/trace/summary_test.go

    		for _, region := range summary.Regions {
    			want, ok := wantRegions[region.Name]
    			if !ok {
    				continue
    			}
    			checkRegionEvents(t, want.startKind, want.endKind, summary.ID, region)
    			delete(wantRegions, region.Name)
    		}
    	}
    	if len(wantRegions) != 0 {
    		t.Errorf("failed to find regions: %#v", wantRegions)
    	}
    }
    
    func TestSummarizeTasksTrace(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top