Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for test_int (0.23 sec)

  1. src/archive/zip/reader_test.go

    				Mode:     0666,
    				Modified: time.Date(2021, 12, 29, 0, 0, 0, 0, timeZone(0)),
    			},
    		},
    	},
    }
    
    func TestReader(t *testing.T) {
    	for _, zt := range tests {
    		t.Run(zt.Name, func(t *testing.T) {
    			readTestZip(t, zt)
    		})
    	}
    }
    
    func readTestZip(t *testing.T, zt ZipTest) {
    	var z *Reader
    	var err error
    	var raw []byte
    	if zt.Source != nil {
    		rat, size := zt.Source()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/archive/tar/reader_test.go

    package tar
    
    import (
    	"bytes"
    	"compress/bzip2"
    	"crypto/md5"
    	"errors"
    	"fmt"
    	"io"
    	"math"
    	"os"
    	"path"
    	"reflect"
    	"strconv"
    	"strings"
    	"testing"
    	"time"
    )
    
    func TestReader(t *testing.T) {
    	vectors := []struct {
    		file    string    // Test input file
    		headers []*Header // Expected output headers
    		chksums []string  // MD5 checksum of files, leave as nil if not checked
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  3. src/bytes/reader_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bytes_test
    
    import (
    	. "bytes"
    	"fmt"
    	"io"
    	"sync"
    	"testing"
    )
    
    func TestReader(t *testing.T) {
    	r := NewReader([]byte("0123456789"))
    	tests := []struct {
    		off     int64
    		seek    int
    		n       int
    		want    string
    		wantpos int64
    		readerr error
    		seekerr string
    	}{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Dec 13 18:45:54 GMT 2021
    - 8K bytes
    - Viewed (0)
  4. internal/s3select/json/reader_test.go

    package json
    
    import (
    	"bytes"
    	"io"
    	"os"
    	"path/filepath"
    	"testing"
    
    	"github.com/minio/minio/internal/s3select/sql"
    )
    
    func TestNewReader(t *testing.T) {
    	files, err := os.ReadDir("testdata")
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, file := range files {
    		t.Run(file.Name(), func(t *testing.T) {
    			f, err := os.Open(filepath.Join("testdata", file.Name()))
    			if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 2.5K bytes
    - Viewed (0)
  5. internal/hash/reader_test.go

    package hash
    
    import (
    	"bytes"
    	"context"
    	"encoding/base64"
    	"encoding/hex"
    	"fmt"
    	"io"
    	"testing"
    
    	"github.com/minio/minio/internal/ioutil"
    )
    
    // Tests functions like Size(), MD5*(), SHA256*()
    func TestHashReaderHelperMethods(t *testing.T) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.3K bytes
    - Viewed (0)
Back to top