Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for testpoints (0.2 sec)

  1. src/debug/pe/symbols_test.go

    // license that can be found in the LICENSE file.
    
    package pe
    
    import (
    	"fmt"
    	"testing"
    )
    
    type testpoint struct {
    	name   string
    	ok     bool
    	err    string
    	auxstr string
    }
    
    func TestReadCOFFSymbolAuxInfo(t *testing.T) {
    	testpoints := map[int]testpoint{
    		39: testpoint{
    			name:   ".rdata$.refptr.__native_startup_lock",
    			ok:     true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 06 18:07:48 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  2. src/cmd/covdata/tool_test.go

    	// Sift through the output to make sure it has the needful.
    	testpoints := []struct {
    		tag string
    		re  *regexp.Regexp
    	}{
    		{
    			"statement coverage percent",
    			regexp.MustCompile(`coverage: \d+\.\d% of statements\s*$`),
    		},
    	}
    
    	bad := false
    	for _, testpoint := range testpoints {
    		found := false
    		for _, line := range lines {
    			if m := testpoint.re.FindStringSubmatch(line); m != nil {
    				found = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/loader/loader_test.go

    	or := &dummyOreader
    
    	// Populate loader with some symbols.
    	addDummyObjSym(t, ldr, or, "type:uint8")
    	ldr.LookupOrCreateSym("hello", 0)
    
    	arch := sys.ArchAMD64
    	var testpoints = []struct {
    		which       string
    		addDataFunc addFunc
    		expData     []byte
    		expKind     sym.SymKind
    		expRel      []Reloc
    	}{
    		{
    			which: "AddUint8",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:09 UTC 2024
    - 12K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

      public void testDivideByZeroThrows() {
        for (int a : TEST_INTS) {
          try {
            UnsignedInteger unused = UnsignedInteger.fromIntBits(a).dividedBy(UnsignedInteger.ZERO);
            fail("Expected ArithmeticException");
          } catch (ArithmeticException expected) {
          }
        }
      }
    
      public void testMod() {
        for (int a : TEST_INTS) {
          for (int b : TEST_INTS) {
            if (b != 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

      public void testDivideByZeroThrows() {
        for (int a : TEST_INTS) {
          try {
            UnsignedInteger unused = UnsignedInteger.fromIntBits(a).dividedBy(UnsignedInteger.ZERO);
            fail("Expected ArithmeticException");
          } catch (ArithmeticException expected) {
          }
        }
      }
    
      public void testMod() {
        for (int a : TEST_INTS) {
          for (int b : TEST_INTS) {
            if (b != 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  6. src/go/printer/performance_test.go

    		initialize()
    	}
    	b.ReportAllocs()
    	b.SetBytes(fileSize)
    	for i := 0; i < b.N; i++ {
    		testprint(io.Discard, fileNode)
    	}
    }
    
    func BenchmarkPrintDecl(b *testing.B) {
    	if declNode == nil {
    		initialize()
    	}
    	b.ReportAllocs()
    	b.SetBytes(declSize)
    	for i := 0; i < b.N; i++ {
    		testprint(io.Discard, declNode)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:10:10 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  7. test/makeslice.go

    	"unsafe"
    )
    
    func main() {
    	n := -1
    	testInts(uint64(n))
    	testBytes(uint64(n))
    
    	var t *byte
    	if unsafe.Sizeof(t) == 8 {
    		// Test mem > maxAlloc
    		testInts(1 << 59)
    
    		// Test elem.size*cap overflow
    		testInts(1<<63 - 1)
    
    		testInts(1<<64 - 1)
    		testBytes(1<<64 - 1)
    	} else {
    		testInts(1<<31 - 1)
    
    		// Test elem.size*cap overflow
    		testInts(1<<32 - 1)
    		testBytes(1<<32 - 1)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 07 17:50:24 UTC 2020
    - 5.5K bytes
    - Viewed (0)
  8. src/internal/coverage/cfile/testdata/harness.go

    	"io"
    	"log"
    	"os"
    	"path/filepath"
    	"runtime/coverage"
    	"strings"
    )
    
    var verbflag = flag.Int("v", 0, "Verbose trace output level")
    var testpointflag = flag.String("tp", "", "Testpoint to run")
    var outdirflag = flag.String("o", "", "Output dir into which to emit")
    
    func emitToWriter() {
    	log.SetPrefix("emitToWriter: ")
    	var slwm slicewriter.WriteSeeker
    	if err := coverage.WriteMeta(&slwm); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. pkg/kubelet/pod/mirror_client_test.go

    					Name:      testPodName,
    					Namespace: testPodNS,
    					Annotations: map[string]string{
    						kubetypes.ConfigHashAnnotationKey: testPodHash,
    					},
    				},
    			}
    
    			err := mc.CreateMirrorPod(pod)
    			if !test.expectSuccess {
    				assert.Error(t, err)
    				return
    			}
    
    			createdPod, err := clientset.CoreV1().Pods(testPodNS).Get(context.TODO(), testPodName, metav1.GetOptions{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 08 12:44:09 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  10. cluster/addons/calico-policy-controller/networkpolicies-crd.yaml

                                packets that are from other Calico-controlled \tendpoints
                                that do not have the label “my_label”. \n \tNotSelector
                                = \"has(my_label)\" matches packets that are not from
                                Calico-controlled \tendpoints that do have the label “my_label”.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 07 20:48:43 UTC 2021
    - 44.2K bytes
    - Viewed (0)
Back to top