Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for df_test (0.17 sec)

  1. src/archive/zip/reader_test.go

    package zip
    
    import (
    	"bytes"
    	"encoding/binary"
    	"encoding/hex"
    	"internal/obscuretestdata"
    	"io"
    	"io/fs"
    	"os"
    	"path/filepath"
    	"reflect"
    	"regexp"
    	"strings"
    	"testing"
    	"testing/fstest"
    	"time"
    )
    
    type ZipTest struct {
    	Name     string
    	Source   func() (r io.ReaderAt, size int64) // if non-nil, used instead of testdata/<Name> file
    	Comment  string
    	File     []ZipTestFile
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/archive/zip/writer_test.go

    	b.RunParallel(func(pb *testing.PB) {
    		var buf bytes.Buffer
    		for pb.Next() {
    			runOnce(&buf)
    		}
    	})
    }
    
    func writeTestsToFS(tests []WriteTest) fs.FS {
    	fsys := fstest.MapFS{}
    	for _, wt := range tests {
    		fsys[wt.Name] = &fstest.MapFile{
    			Data: wt.Data,
    			Mode: wt.Mode,
    		}
    	}
    	return fsys
    }
    
    func TestWriterAddFS(t *testing.T) {
    	buf := new(bytes.Buffer)
    	w := NewWriter(buf)
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Sep 15 19:04:06 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  3. api/go1.16.txt

    pkg testing/fstest, func TestFS(fs.FS, ...string) error
    pkg testing/fstest, method (MapFS) Glob(string) ([]string, error)
    pkg testing/fstest, method (MapFS) Open(string) (fs.File, error)
    pkg testing/fstest, method (MapFS) ReadDir(string) ([]fs.DirEntry, error)
    pkg testing/fstest, method (MapFS) ReadFile(string) ([]uint8, error)
    pkg testing/fstest, method (MapFS) Stat(string) (fs.FileInfo, error)
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Dec 02 16:30:41 GMT 2022
    - 479.2K bytes
    - Viewed (0)
  4. src/archive/tar/writer_test.go

    // license that can be found in the LICENSE file.
    
    package tar
    
    import (
    	"bytes"
    	"encoding/hex"
    	"errors"
    	"io"
    	"io/fs"
    	"os"
    	"path"
    	"reflect"
    	"sort"
    	"strings"
    	"testing"
    	"testing/fstest"
    	"testing/iotest"
    	"time"
    )
    
    func bytediff(a, b []byte) string {
    	const (
    		uniqueA  = "-  "
    		uniqueB  = "+  "
    		identity = "   "
    	)
    	var ss []string
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
Back to top