Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for OOPS (0.04 sec)

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

    env GOFLAGS='$(echo ''cc"''; echo ''OOPS="oops'')'
    go env
    [GOOS:darwin] stdout 'GOFLAGS=''\$\(echo ''\\''''cc"''\\''''; echo ''\\''''OOPS="oops''\\''''\)'''
    [GOOS:linux] stdout 'GOFLAGS=''\$\(echo ''\\''''cc"''\\''''; echo ''\\''''OOPS="oops''\\''''\)'''
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 05 14:28:38 UTC 2023
    - 331 bytes
    - Viewed (0)
  2. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/FullExceptionFormatterTest.groovy

            expect:
            formatter.format(testDescriptor, [new RuntimeException("oops"), new Exception("ouch")]) == """\
        java.lang.RuntimeException: oops
    
        java.lang.Exception: ouch
    """
        }
    
        def "optionally shows causes"() {
            testLogging.getShowCauses() >> true
            def cause = new RuntimeException("oops")
            def exception = new Exception("ouch", cause)
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. src/cmd/internal/test2json/testdata/panic.json

    {"Action":"start"}
    {"Action":"output","Test":"TestPanic","Output":"--- FAIL: TestPanic (0.00s)\n"}
    {"Action":"output","Test":"TestPanic","Output":"panic: oops [recovered]\n"}
    {"Action":"output","Test":"TestPanic","Output":"\tpanic: oops\n"}
    {"Action":"output","Test":"TestPanic","Output":"\n"}
    {"Action":"output","Test":"TestPanic","Output":"goroutine 7 [running]:\n"}
    {"Action":"output","Test":"TestPanic","Output":"testing.tRunner.func1(0xc000092100)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_get_errors.txt

    # of the requested package (by default, the package in the current directory)
    # cannot be resolved.
    
    ! go get
    stderr '^go: example.com/m imports\n\texample.com/badimport imports\n\texample.net/oops: cannot find module providing package example.net/oops$'
    cmp go.mod.orig go.mod
    
    cd importsyntax
    
    
    # A syntax error in a dependency prevents the compiler from needing that
    # dependency's imports, so 'go get' should not report an error when those
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/goflags.txt

    env GOFLAGS=-
    ! go list runtime
    stderr '^go: parsing \$GOFLAGS: non-flag "-"'
    
    env GOFLAGS=--
    ! go list runtime
    stderr '^go: parsing \$GOFLAGS: non-flag "--"'
    
    env GOFLAGS=---oops
    ! go list runtime
    stderr '^go: parsing \$GOFLAGS: non-flag "---oops"'
    
    env GOFLAGS=-=noname
    ! go list runtime
    stderr '^go: parsing \$GOFLAGS: non-flag "-=noname"'
    
    env GOFLAGS=-f
    ! go list runtime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 16:47:27 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/ShortExceptionFormatterTest.groovy

            where:
            exception << [
                new PlaceholderException(Exception.class.name, "oops", null, "java.lang.Exception: oops", null, null),
                new PlaceholderAssertionError(Exception.class.name, "oops", null, "java.lang.Exception: oops", null, null)
            ]
        }
    
        private createStackTrace() {
            [
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  7. src/cmd/internal/test2json/testdata/panic.test

    --- FAIL: TestPanic (0.00s)
    panic: oops [recovered]
    	panic: oops
    
    goroutine 7 [running]:
    testing.tRunner.func1(0xc000092100)
    	/go/src/testing/testing.go:874 +0x3a3
    panic(0x1110ea0, 0x116aea0)
    	/go/src/runtime/panic.go:679 +0x1b2
    command-line-arguments.TestPanic(0xc000092100)
    	a_test.go:6 +0x39
    testing.tRunner(0xc000092100, 0x114f500)
    	go/src/testing/testing.go:909 +0xc9
    created by testing.(*T).Run
    	go/src/testing/testing.go:960 +0x350
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 30 20:46:44 UTC 2019
    - 479 bytes
    - Viewed (0)
  8. src/cmd/go/testdata/mod/example.com_printversion_v1.0.0.txt

    -- .mod --
    module example.com/printversion
    
    require example.com/version v1.0.0
    replace example.com/version v1.0.0 => ../oops v0.0.0
    exclude example.com/version v1.1.0
    -- .info --
    {"Version":"v1.0.0"}
    -- go.mod --
    module example.com/printversion
    
    require example.com/version v1.0.0
    replace example.com/version v1.0.0 => ../oops v0.0.0
    exclude example.com/version v1.0.1
    -- printversion.go --
    package main
    
    import (
    	"fmt"
    	"os"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 25 15:43:19 UTC 2020
    - 1001 bytes
    - Viewed (0)
  9. platforms/software/testing-base/src/integTest/resources/org/gradle/testing/RetainStacktraceForInheritedTestMethodsTest/retainsStackTraceForInheritedTestMethods/src/test/java/g/Base.java

    import org.junit.jupiter.api.Assertions;
    import org.junit.jupiter.api.Test;
    
    public abstract class Base {
        @Test public void alwaysFails() {
            Assertions.fail("Oops, base failed again");
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 204 bytes
    - Viewed (0)
  10. src/errors/example_test.go

    	When time.Time
    	What string
    }
    
    func (e MyError) Error() string {
    	return fmt.Sprintf("%v: %v", e.When, e.What)
    }
    
    func oops() error {
    	return MyError{
    		time.Date(1989, 3, 15, 22, 30, 0, 0, time.UTC),
    		"the file system has gone away",
    	}
    }
    
    func Example() {
    	if err := oops(); err != nil {
    		fmt.Println(err)
    	}
    	// Output: 1989-03-15 22:30:00 +0000 UTC: the file system has gone away
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 02:08:40 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top