Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for tsv2json (0.26 sec)

  1. src/cmd/go/internal/test/testflag.go

    	if testJSON {
    		// If converting to JSON, we need the full output in order to pipe it to test2json.
    		// The -test.v=test2json flag is like -test.v=true but causes the test to add
    		// extra ^V characters before testing output lines and other framing,
    		// which helps test2json do a better job creating the JSON events.
    		injectedFlags = append(injectedFlags, "-test.v=test2json")
    		delete(addFromGOFLAGS, "v")
    		delete(addFromGOFLAGS, "test.v")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. src/runtime/debug/mod_test.go

    	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
    		mod	example.com/m	(devel)	
    		build	-compiler=gc
    		`))
    
    	// Package built in GOPATH mode.
    	f.Add(strip(`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 09 19:44:03 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_chatty_parallel_success.txt

    stdout -count=2 '^=== (CONT|NAME)  TestChattyParallel/sub-2\n    chatty_parallel_test.go:32: this is sub-2$'
    
    # Run parallel chatty tests with -json.
    # Assert test2json has properly attributed output.
    go test -json -parallel 3 chatty_parallel_test.go -v
    stdout -count=2 '"Test":"TestChattyParallel/sub-0","Output":"    chatty_parallel_test.go:32: this is sub-0\\n"'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/test2json_interrupt.txt

    stdout -count=1 '"Action":"pass","Package":"example","Test":"FuzzInterrupt"'
    stdout -count=1 '"Action":"pass","Package":"example","Elapsed":'
    
    mkdir $WORK/fuzzcache
    go test -c . -fuzz=. -o example_test.exe
    ? go tool test2json -p example -t ./example_test.exe -test.v -test.paniconexit0 -test.fuzzcachedir $WORK/fuzzcache -test.fuzz FuzzInterrupt -test.run '^$' -test.parallel 1
    stdout -count=1 '"Action":"pass","Package":"example","Test":"FuzzInterrupt"'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 08 03:52:44 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  5. src/cmd/go/internal/test/test.go

    	on   bool // -v is set in some form
    	json bool // -v=test2json is set, to make output better for test2json
    }
    
    func (*testVFlag) IsBoolFlag() bool { return true }
    
    func (f *testVFlag) Set(arg string) error {
    	if v, err := strconv.ParseBool(arg); err == nil {
    		f.on = v
    		f.json = false
    		return nil
    	}
    	if arg == "test2json" {
    		f.on = true
    		f.json = arg == "test2json"
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  6. src/testing/testing.go

    	on   bool // -v is set in some form
    	json bool // -v=test2json is set, to make output better for test2json
    }
    
    func (*chattyFlag) IsBoolFlag() bool { return true }
    
    func (f *chattyFlag) Set(arg string) error {
    	switch arg {
    	default:
    		return fmt.Errorf("invalid flag -test.v=%s", arg)
    	case "true", "test2json":
    		f.on = true
    		f.json = arg == "test2json"
    	case "false":
    		f.on = false
    		f.json = false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  7. src/cmd/internal/test2json/test2json_test.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package test2json
    
    import (
    	"bytes"
    	"encoding/json"
    	"flag"
    	"fmt"
    	"io"
    	"os"
    	"path/filepath"
    	"reflect"
    	"strings"
    	"testing"
    	"unicode/utf8"
    )
    
    var update = flag.Bool("update", false, "rewrite testdata/*.json files")
    
    func TestGolden(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 7.2K bytes
    - Viewed (0)
  8. cmd/testdata/decryptObjectInfo.json.zst

    rnal-Server-Side-Encryption-S3-Sealed-Key":"IAAfAPiPLnmqnmToLWUa==","X-Minio-Internal-Server-Side-Encryption-Seal-Algorithm":"DAREv2-HMAC-SHA256","content-type":"application/octet-stream"}},{"Bucket":"buck1","Name":"go_113/src/cmd/internal/test2json/test2json.go","UserDef":{"X-Minio-Internal-Server-Side-Encryption-Iv":"Ppe/RRTeRSufAOYSTnDYxqLP=","X-Minio-Internal-Server-Side-Encryption-S3-Kms-Key-Id":"my-minio-key","X-Minio-Internal-Server-Side-Encryption-S3-Kms-Sealed-Key":"IAAfAMwC7KYWjgHHrvdH...
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Oct 29 16:34:20 UTC 2020
    - 164K bytes
    - Viewed (0)
  9. src/cmd/dist/test.go

    	// variant, if non-empty, is a name used to distinguish different
    	// configurations of the same test package(s). If set and omitVariant is false,
    	// the Package field in test2json output is rewritten to pkg:variant.
    	variant string
    	// omitVariant indicates that variant is used solely for the dist test name and
    	// that the set of test names run by each variant (including empty) of a package
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
  10. src/cmd/go/alldocs.go

    //	    in 'go run'. See 'go help run' for details.
    //
    //	-json
    //	    Convert test output to JSON suitable for automated processing.
    //	    See 'go doc test2json' for the encoding details.
    //
    //	-o file
    //	    Compile the test binary to the named file.
    //	    The test still runs (unless -c or -i is specified).
    //	    If file ends in a slash or names an existing directory,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top