Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TestExamples (0.12 sec)

  1. cmd/kubeadm/app/cmd/util/documentation_test.go

    			got := LongDesc(test.in)
    			if got != test.out {
    				t.Errorf("expected(%d):\n%s\n=====\ngot(%d):\n%s\n", len(test.out), test.out, len(got), got)
    			}
    		})
    	}
    }
    
    func TestExamples(t *testing.T) {
    	tests := []struct {
    		desc string
    		in   string
    		out  string
    	}{
    		{
    			desc: "Empty input produces empty output",
    			in:   "",
    			out:  "",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 24 11:40:55 UTC 2019
    - 2.8K bytes
    - Viewed (0)
  2. src/go/doc/example_test.go

    import (
    	"bytes"
    	"fmt"
    	"go/ast"
    	"go/doc"
    	"go/format"
    	"go/parser"
    	"go/token"
    	"internal/diff"
    	"internal/txtar"
    	"path/filepath"
    	"reflect"
    	"strings"
    	"testing"
    )
    
    func TestExamples(t *testing.T) {
    	dir := filepath.Join("testdata", "examples")
    	filenames, err := filepath.Glob(filepath.Join(dir, "*.go"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, filename := range filenames {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  3. src/go/types/check_test.go

    	DefPredeclaredTestFuncs()
    	testDirFiles(t, "../../internal/types/testdata/check", false)
    }
    func TestSpec(t *testing.T)      { testDirFiles(t, "../../internal/types/testdata/spec", false) }
    func TestExamples(t *testing.T)  { testDirFiles(t, "../../internal/types/testdata/examples", false) }
    func TestFixedbugs(t *testing.T) { testDirFiles(t, "../../internal/types/testdata/fixedbugs", false) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/check_test.go

    }
    func TestSpec(t *testing.T) { testDirFiles(t, "../../../../internal/types/testdata/spec", 20, false) } // TODO(gri) narrow column tolerance
    func TestExamples(t *testing.T) {
    	testDirFiles(t, "../../../../internal/types/testdata/examples", 125, false)
    } // TODO(gri) narrow column tolerance
    func TestFixedbugs(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top