Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestMumble (0.16 sec)

  1. src/cmd/go/testdata/script/cover_coverprofile_multipkg.txt

    -- aa/aa.go --
    package aa
    
    import "M/it"
    
    func AA(y int) int {
    	c := it.Conc{}
    	x := it.Callee(&c)
    	println(x, y)
    	return 0
    }
    -- aa/aa_test.go --
    package aa
    
    import "testing"
    
    func TestMumble(t *testing.T) {
    	AA(3)
    }
    -- b/b.go --
    package b
    
    func init() {
    	println("package 'b' init: release the kraken")
    }
    
    func BFunc() int {
    	return -42
    }
    -- b/b_test.go --
    package b
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 17:02:36 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cover_test_localpkg_filepath.txt

    	if x < 0 {
    		return -x
    	}
    	return 42
    }
    
    func Grumble(y int) int {
    	return -y
    }
    
    func main() {
    }
    
    -- prog_test.go --
    package main
    
    import (
    	"testing"
    )
    
    func TestMumble(t *testing.T) {
    	if x := Mumble(10); x != 42 {
    		t.Errorf("Mumble(%d): got %d want %d", 10, x, 42)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 01 14:11:54 UTC 2022
    - 571 bytes
    - Viewed (0)
Back to top