Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 112 for fortune (0.12 sec)

  1. src/testing/fstest/mapfs_test.go

    	"strings"
    	"testing"
    )
    
    func TestMapFS(t *testing.T) {
    	m := MapFS{
    		"hello":             {Data: []byte("hello, world\n")},
    		"fortune/k/ken.txt": {Data: []byte("If a program is too slow, it must have a loop.\n")},
    	}
    	if err := TestFS(m, "hello", "fortune", "fortune/k", "fortune/k/ken.txt"); err != nil {
    		t.Fatal(err)
    	}
    }
    
    func TestMapFSChmodDot(t *testing.T) {
    	m := MapFS{
    		"a/b.txt": &MapFile{Mode: 0666},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 14:59:55 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/mod/rsc.io_fortune_v2_v2.0.0.txt

    rsc.io/fortune v2.0.0
    written by hand
    
    -- .mod --
    module rsc.io/fortune/v2
    -- .info --
    {"Version":"v2.0.0"}
    -- fortune.go --
    package main
    
    import "rsc.io/quote"
    
    func main() {
    	println(quote.Hello())
    }
    -- fortune_test.go --
    package main
    
    import "testing"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 19:28:22 UTC 2019
    - 292 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/mod/rsc.io_fortune_v1.0.0.txt

    rsc.io/fortune v1.0.0
    written by hand
    
    -- .mod --
    module rsc.io/fortune
    -- .info --
    {"Version":"v1.0.0"}
    -- fortune.go --
    package main
    
    import "rsc.io/quote"
    
    func main() {
    	println(quote.Hello())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 10 00:47:25 UTC 2018
    - 199 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/mod/rsc.io_fortune_v0.0.1.txt

    rsc.io/fortune 0.0.1
    written by hand
    
    -- .mod --
    module rsc.io/fortune
    go 1.21rc999
    
    -- go.mod --
    module rsc.io/fortune
    go 1.21rc999
    
    -- .info --
    {"Version":"v0.0.1"}
    -- fortune.go --
    package main
    
    import "rsc.io/quote"
    
    func main() {
    	println(quote.Hello())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 17:34:01 UTC 2023
    - 261 bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_run_pkg_version.txt

    go mod init tmp
    go mod edit -require=rsc.io/fortune@v1.0.0
    ! go run -mod=readonly $GOPATH/pkg/mod/rsc.io/fortune@v1.0.0
    stderr '^missing go\.sum entry for module providing package rsc\.io/fortune; to add:\n\tgo mod download rsc\.io/fortune$'
    ! go run -mod=readonly ../../pkg/mod/rsc.io/fortune@v1.0.0
    stderr '^missing go\.sum entry for module providing package rsc\.io/fortune; to add:\n\tgo mod download rsc\.io/fortune$'
    cd ..
    rm tmp
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 17:25:54 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/mod_gonoproxy.txt

    # When GOPROXY=off, fetching modules not matched by GONOPROXY fails.
    env GONOPROXY=*/fortune
    env GOPROXY=off
    ! go get golang.org/x/text
    stderr '^go: golang.org/x/text: module lookup disabled by GOPROXY=off$'
    
    # GONOPROXY bypasses proxy
    [!net:rsc.io] skip
    [!git] skip
    env GOPRIVATE=none
    env GONOPROXY='*/fortune'
    ! go get rsc.io/fortune # does not exist in real world, only on test proxy
    stderr 'git ls-remote'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 15:54:04 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/work_sync_sum.txt

    -- go.work --
    go 1.18
    use (
        ./a
        ./b
    )
    replace example.com/c => ./c
    -- a/go.mod --
    module example.com/a
    go 1.18
    require rsc.io/fortune v1.0.0
    -- a/a.go --
    package a
    import "rsc.io/fortune"
    -- b/go.mod --
    module example.com/b
    go 1.18
    require rsc.io/quote v1.0.0
    -- b/b.go --
    package b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 13 19:25:50 UTC 2022
    - 864 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/mod_sumdb.txt

    cp go.mod.orig go.mod
    env GOSUMDB=$sumdb
    ! go get rsc.io/fortune
    stderr 'SECURITY ERROR\ngo.sum database server misbehavior detected!'
    stderr 'proof of misbehavior:'
    
    # removing the cached wrong tree head and cached tiles clears the bad data
    rm $GOPATH/pkg/sumdb/$dbname/latest
    go clean -modcache
    go get rsc.io/fortune
    
    -- go.mod.orig --
    module m
    
    go 1.16
    -- m.go --
    package m
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_why.txt

    # rsc.io/quote
    mymodule/y
    mymodule/y.test
    rsc.io/quote
    
    # rsc.io/sampler
    mymodule/y
    mymodule/y.test
    rsc.io/quote
    rsc.io/sampler
    -- why-missing.txt --
    # rsc.io/fortune
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 22 16:52:00 UTC 2020
    - 2.6K bytes
    - Viewed (0)
  10. src/runtime/debug/mod_test.go

    		replaced = replaced[1:]
    	}
    	return replaced
    }
    
    func FuzzParseBuildInfoRoundTrip(f *testing.F) {
    	// Package built from outside a module, missing some fields..
    	f.Add(strip(`
    		path	rsc.io/fortune
    		mod	rsc.io/fortune	v1.0.0
    		`))
    
    	// Package built from the standard library, missing some fields..
    	f.Add(`path	cmd/test2json`)
    
    	// Package built from inside a module.
    	f.Add(strip(`
    		go	1.18
    		path	example.com/m
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 09 19:44:03 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top