Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for testLoader (0.04 sec)

  1. src/archive/tar/reader_test.go

    import (
    	"bytes"
    	"compress/bzip2"
    	"errors"
    	"fmt"
    	"hash/crc32"
    	"io"
    	"maps"
    	"math"
    	"os"
    	"path"
    	"reflect"
    	"slices"
    	"strconv"
    	"strings"
    	"testing"
    	"time"
    )
    
    func TestReader(t *testing.T) {
    	vectors := []struct {
    		file    string    // Test input file
    		headers []*Header // Expected output headers
    		chksums []string  // CRC32 checksum of files, leave as nil if not checked
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  2. tests/query_test.go

    	result = User{}
    	if DB.Where(map[string]interface{}{}).Where("name = ?", user.Name).First(&result).Error != nil {
    		t.Errorf("Should not raise any error if searching with empty map")
    	}
    }
    
    func TestOrder(t *testing.T) {
    	dryDB := DB.Session(&gorm.Session{DryRun: true})
    
    	result := dryDB.Order("").Find(&User{})
    	if !regexp.MustCompile("SELECT \\* FROM .*users.* IS NULL$").MatchString(result.Statement.SQL.String()) {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Jul 22 06:21:04 UTC 2025
    - 51K bytes
    - Viewed (0)
  3. src/archive/zip/reader_test.go

    	// while most other tools would reject the file or extract a different one ("FILE").
    	{
    		Name:  "comment-truncated.zip",
    		Error: ErrFormat,
    	},
    }
    
    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
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Mar 11 22:19:38 UTC 2025
    - 56.6K bytes
    - Viewed (0)
  4. api/go1.16.txt

    pkg testing/fstest, type MapFile struct, Mode fs.FileMode
    pkg testing/fstest, type MapFile struct, Sys interface{}
    pkg testing/iotest, func ErrReader(error) io.Reader
    pkg testing/iotest, func TestReader(io.Reader, []uint8) error
    pkg text/template, func ParseFS(fs.FS, ...string) (*Template, error)
    pkg text/template, method (*Template) ParseFS(fs.FS, ...string) (*Template, error)
    pkg text/template/parse, const NodeComment = 20
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Dec 02 16:30:41 UTC 2022
    - 479.2K bytes
    - Viewed (0)
Back to top