Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 205 for wantNG (0.8 sec)

  1. src/iter/pull_test.go

    				wantNG(1)
    			}
    			wantNG(1)
    			if end < 3 {
    				stop()
    				wantNG(0)
    			}
    			for range 2 {
    				k, v, ok := next()
    				if v != 0 || ok != false {
    					t.Fatalf("next() = %d, %d, %v, want %d, %d, %v", k, v, ok, 0, 0, false)
    				}
    				wantNG(0)
    			}
    			wantNG(0)
    
    			stop()
    			stop()
    			stop()
    			wantNG(0)
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  2. src/encoding/binary/binary_test.go

    		Read(r, BigEndian, &ls.Float64)
    	}
    	b.StopTimer()
    	want := s
    	want.Int8 = 0
    	want.Int16 = 0
    	want.Int32 = 0
    	want.Int64 = 0
    	want.Uint8 = 0
    	want.Uint16 = 0
    	want.Uint32 = 0
    	want.Uint64 = 0
    	want.Complex64 = 0
    	want.Complex128 = 0
    	want.Array = [4]uint8{0, 0, 0, 0}
    	want.Bool = false
    	want.BoolArray = [4]bool{false, false, false, false}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  3. src/internal/coverage/cfile/emitdata_test.go

    				mfc++
    			} else if strings.HasPrefix(e.Name(), coverage.CounterFilePref) {
    				cdc++
    			}
    		}
    		wantmf := 1
    		wantcf := 1
    		if mfc != wantmf {
    			t.Errorf("EmitToDir: want %d meta-data files, got %d\n", wantmf, mfc)
    		}
    		if cdc != wantcf {
    			t.Errorf("EmitToDir: want %d counter-data files, got %d\n", wantcf, cdc)
    		}
    		upmergeCoverData(t, edir, "atomic")
    		upmergeCoverData(t, rdir, "atomic")
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. src/cmd/covdata/tool_test.go

    	}
    	lines = strings.Split(string(payload), "\n")
    	want0 := "mode: set"
    	if lines[0] != want0 {
    		dumplines(lines[0:10])
    		t.Errorf("textfmt: want %s got %s", want0, lines[0])
    	}
    	want1 := mainPkgPath + "/prog1.go:13.14,15.2 1 1"
    	if lines[1] != want1 {
    		dumplines(lines[0:10])
    		t.Errorf("textfmt: want %s got %s", want1, lines[1])
    	}
    }
    
    func dumplines(lines []string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  5. src/runtime/sigqueue.go

    func signal_disable(s uint32) {
    	if s >= uint32(len(sig.wanted)*32) {
    		return
    	}
    	sigdisable(s)
    
    	w := sig.wanted[s/32]
    	w &^= 1 << (s & 31)
    	atomic.Store(&sig.wanted[s/32], w)
    }
    
    // Must only be called from a single goroutine at a time.
    //
    //go:linkname signal_ignore os/signal.signal_ignore
    func signal_ignore(s uint32) {
    	if s >= uint32(len(sig.wanted)*32) {
    		return
    	}
    	sigignore(s)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. internal/grid/grid.go

    func GetByteBufferCap(wantSz int) []byte {
    	if wantSz < defaultBufferSize {
    		b := GetByteBuffer()[:0]
    		if cap(b) >= wantSz {
    			return b
    		}
    		PutByteBuffer(b)
    	}
    	if wantSz <= maxBufferSize {
    		b := *internal32KByteBuffer.Get().(*[]byte)
    		if cap(b) >= wantSz {
    			return b[:0]
    		}
    		internal32KByteBuffer.Put(&b)
    	}
    	return make([]byte, 0, wantSz)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Apr 02 15:56:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. src/runtime/testdata/testprog/coro.go

    		if !ok {
    			break
    		}
    		if v != 5 {
    			return fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v)
    		}
    	}
    	return nil
    }
    
    func callerExhaustLocked(i iter.Seq[int]) error {
    	runtime.LockOSThread()
    	next, _ := iter.Pull(i)
    	for {
    		v, ok := next()
    		if !ok {
    			break
    		}
    		if v != 5 {
    			return fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v)
    		}
    	}
    	runtime.UnlockOSThread()
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/runtime/testdata/testprogcgo/coro.go

    			break
    		}
    		if v != 5 {
    			return fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v)
    		}
    	}
    	return nil
    }
    
    func callerExhaustCallback(i iter.Seq[int]) (err error) {
    	callFromC(func() {
    		next, _ := iter.Pull(i)
    		for {
    			v, ok := next()
    			if !ok {
    				break
    			}
    			if v != 5 {
    				err = fmt.Errorf("bad iterator: wanted value %d, got %d", 5, v)
    			}
    		}
    	})
    	return err
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. src/internal/trace/trace_test.go

    				case trace.EventLog:
    					log := ev.Log()
    					match = log.Task == wantEv.task && log.Category == wantEv.args[0] && log.Message == wantEv.args[1]
    				}
    				if match {
    					want[i] = want[len(want)-1]
    					want = want[:len(want)-1]
    					break
    				}
    			}
    		}
    		if len(want) != 0 {
    			for _, ev := range want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  10. src/cmd/link/internal/loader/loader_test.go

    	if ldr.OuterSym(es1) != 0 {
    		t.Errorf("ldr.OuterSym(es1) got %d wanted %d", ldr.OuterSym(es1), 0)
    	}
    	if ldr.OuterSym(es2) != es1 {
    		t.Errorf("ldr.OuterSym(es2) got %d wanted %d", ldr.OuterSym(es2), es1)
    	}
    	if ldr.SubSym(es1) != es2 {
    		t.Errorf("ldr.SubSym(es1) got %d wanted %d", ldr.SubSym(es1), es2)
    	}
    	if ldr.SubSym(es2) != 0 {
    		t.Errorf("ldr.SubSym(es2) got %d wanted %d", ldr.SubSym(es2), 0)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:09 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top