403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.217.80
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1073854427 ( 1073854427)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /lib/go/src/cmd/go/testdata/script/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/go/src/cmd/go/testdata/script/list_test_simple.txt
[short] skip

# Test
go test -list=Test
stdout TestSimple

# Benchmark
go test -list=Benchmark
stdout BenchmarkSimple

# Examples
go test -list=Example
stdout ExampleSimple
stdout ExampleWithEmptyOutput

-- go.mod --
module m

go 1.16
-- bench_test.go --
package testlist

import (
	"fmt"
	"testing"
)

func BenchmarkSimplefunc(b *testing.B) {
	b.StopTimer()
	b.StartTimer()
	for i := 0; i < b.N; i++ {
		_ = fmt.Sprint("Test for bench")
	}
}
-- example_test.go --
package testlist

import (
	"fmt"
)

func ExampleSimple() {
	fmt.Println("Test with Output.")

	// Output: Test with Output.
}

func ExampleWithEmptyOutput() {
	fmt.Println("")

	// Output:
}

func ExampleNoOutput() {
	_ = fmt.Sprint("Test with no output")
}
-- test_test.go --
package testlist

import (
	"fmt"
	"testing"
)

func TestSimple(t *testing.T) {
	_ = fmt.Sprint("Test simple")
}

Youez - 2016 - github.com/yon3zu
LinuXploit