Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 56 of 56 for TestData (1.54 sec)

  1. cmd/test-utils_test.go

    		}
    		rec = httptest.NewRecorder()
    		apiRouter.ServeHTTP(rec, reqC)
    		checkRespErr(rec, http.StatusOK)
    	}
    }
    
    // unzip a file into a specific target dir - used to unzip sample data in cmd/testdata/
    func unzipArchive(zipFilePath, targetDir string) error {
    	zipReader, err := zip.OpenReader(zipFilePath)
    	if err != nil {
    		return err
    	}
    	for _, file := range zipReader.File {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 77K bytes
    - Viewed (0)
  2. cmd/xl-storage_test.go

    	// create xlStorage test setup
    	xlStorage, _, err := newXLStorageTestSetup(t)
    	if err != nil {
    		t.Fatalf("Unable to cfgreate xlStorage test setup, %s", err)
    	}
    
    	xlMeta, _ := os.ReadFile("testdata/xl.meta")
    	fi, _ := getFileInfo(xlMeta, "exists", "as-file", "", fileInfoOpts{Data: false})
    
    	// Create files for the test cases.
    	if err = xlStorage.MakeVol(t.Context(), "exists"); err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 66K bytes
    - Viewed (0)
  3. doc/go_spec.html

    as in an <a href="#Assignment_statements">assignment statement</a>.
    </p>
    
    <pre>
    var testdata *struct {
    	a *[7]int
    }
    for i, _ := range testdata.a {
    	// testdata.a is never evaluated; len(testdata.a) is constant
    	// i ranges from 0 to 6
    	f(i)
    }
    
    var a [10]string
    for i, s := range a {
    	// type of i is int
    	// type of s is string
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 06 19:12:15 UTC 2025
    - 286.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

            Arrays.fill(destData, (byte) 0x00); // Clear destData
            ndrBuffer.readOctetArray(destData, 1, 3); // Read 0x10, 0x11, 0x12 into destData[1-3]
    
            assertEquals(3, ndrBuffer.getIndex());
            assertEquals(0x00, destData[0]);
            assertEquals(0x10, destData[1]);
            assertEquals(0x11, destData[2]);
            assertEquals(0x12, destData[3]);
            assertEquals(0x00, destData[4]);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  5. src/bufio/bufio_test.go

    	}
    }
    
    func TestReadAfterLines(t *testing.T) {
    	line1 := "this is line1"
    	restData := "this is line2\nthis is line 3\n"
    	inbuf := bytes.NewReader([]byte(line1 + "\n" + restData))
    	outbuf := new(strings.Builder)
    	maxLineLength := len(line1) + len(restData)/2
    	l := NewReaderSize(inbuf, maxLineLength)
    	line, isPrefix, err := l.ReadLine()
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Feb 07 01:08:54 UTC 2025
    - 51.6K bytes
    - Viewed (0)
  6. lib/fips140/v1.0.0.zip

     z2 := slices.Clone(z) var y uint y-- c := addMulVVW(z, x, y) c2 := test.f(&z2[0], &x[0], y) if !slices.Equal(z, z2) || c != c2 { t.Errorf("%016X, %016X != %016X, %016X", z, c, z2, c2) } }) } } func TestInverse(t *testing.T) { f, err := os.Open("testdata/mod_inv_tests.txt") if err != nil { t.Fatal(err) } var ModInv, A, M string var lineNum int scanner := bufio.NewScanner(f) for scanner.Scan() { lineNum++ line := scanner.Text() if len(line) == 0 || line[0] == '#' { continue } k, v, _ := strings.Cut(line,...
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 29 15:10:35 UTC 2025
    - 635K bytes
    - Viewed (0)
Back to top