Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestTesting (0.21 sec)

  1. src/testing/testing_test.go

    				}
    			}()
    
    			t.Setenv("GO_TEST_KEY_1", "value")
    		})
    	})
    }
    
    // testingTrueInInit is part of TestTesting.
    var testingTrueInInit = false
    
    // testingTrueInPackageVarInit is part of TestTesting.
    var testingTrueInPackageVarInit = testing.Testing()
    
    // init is part of TestTesting.
    func init() {
    	if testing.Testing() {
    		testingTrueInInit = true
    	}
    }
    
    var testingProg = `
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. src/encoding/gob/codec_test.go

    	}
    	var o8 outc64
    	enc.Encode(it)
    	err = dec.Decode(&o8)
    	if err == nil || err.Error() != `value for "Maxc" out of range` {
    		t.Error("wrong overflow error for complex64:", err)
    	}
    }
    
    func TestNesting(t *testing.T) {
    	type RT struct {
    		A    string
    		Next *RT
    	}
    	rt := new(RT)
    	rt.A = "level1"
    	rt.Next = new(RT)
    	rt.Next.A = "level2"
    	b := new(bytes.Buffer)
    	NewEncoder(b).Encode(rt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 19 23:03:14 UTC 2023
    - 36.9K bytes
    - Viewed (0)
Back to top