Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestBlah (0.13 sec)

  1. src/go/doc/testdata/examples/whole_file.golden

    -- .Play --
    package main
    
    import "fmt"
    
    type X int
    
    func (X) Foo() {
    }
    
    func (X) TestBlah() {
    }
    
    func (X) BenchmarkFoo() {
    }
    
    func main() {
    	fmt.Println("Hello, world!")
    }
    -- .Output --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 200 bytes
    - Viewed (0)
  2. src/go/doc/testdata/examples/whole_file.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package foo_test
    
    import "fmt"
    
    type X int
    
    func (X) Foo() {
    }
    
    func (X) TestBlah() {
    }
    
    func (X) BenchmarkFoo() {
    }
    
    func Example() {
    	fmt.Println("Hello, world!")
    	// Output: Hello, world!
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 353 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/cover_coverpkg_partial.txt

    -- d/d.go --
    package d
    
    const FortyTwo = 42
    
    func DFunc() int {
      return FortyTwo
    }
    
    -- e/e_test.go --
    package e
    
    import (
    	"M/a"
    	"M/b"
    	"testing"
    )
    
    func TestBlah(t *testing.T) {
    	if b.BFunc() == 1010101 {
    		t.Fatalf("bad")
    	}
    	a.AFunc()
    }
    -- f/f.go --
    package f
    
    var F int
    
    func Id() int {
    	F += 9
    	F *= 2
    	return 42
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:12:49 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top