Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for matchBool (0.13 sec)

  1. pkg/log/logr_test.go

    			l.V(0).Info("0")
    			l.V(1).Info("1")
    			l.V(2).Info("2")
    			l.V(3).Info("3")
    			l.V(4).Info("4")
    
    			matchBool(t, true, l.V(0).Enabled())
    			matchBool(t, true, l.V(3).Enabled())
    			matchBool(t, false, l.V(4).Enabled())
    			matchBool(t, false, l.V(6).Enabled())
    		})
    		mustMatchLength(t, 4, lines)
    		mustRegexMatchString(t, lines[0], "0")
    		mustRegexMatchString(t, lines[1], "1")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. src/regexp/regexp.go

    // split up by the size of the execution queues.
    // matchPool[i] machines have queue size matchSize[i].
    // On a 64-bit system each queue entry is 16 bytes,
    // so matchPool[0] has 16*2*128 = 4kB queues, etc.
    // The final matchPool is a catch-all for very large queues.
    var (
    	matchSize = [...]int{128, 512, 2048, 16384, 0}
    	matchPool [len(matchSize)]sync.Pool
    )
    
    // get returns a machine to use for matching re.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 38.5K bytes
    - Viewed (0)
Back to top