Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 245 for testHome (0.15 sec)

  1. platforms/jvm/jvm-services/src/test/groovy/org/gradle/internal/jvm/inspection/InvalidInstallationWarningReporterTest.groovy

        }
    
        def 'reporter logs meaningful message'() {
            given:
            def reporter = new InvalidInstallationWarningReporter(mockLogger)
            def location = InstallationLocation.userDefined(new File("testHome"), "test")
            def metadata = Mock(JvmInstallationMetadata) {
                isValidInstallation() >> false
            }
    
            when:
            reporter.accept(location, metadata)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 18:25:34 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodeIterator.java

                XmlNode child = children.get(filteredIndex);
                if (testNode(child)) {
                    filteredChildren.add(child);
                }
            }
        }
    
        private boolean testNode(XmlNode node) {
            if (test == null) {
                return true;
            }
            if (test instanceof NodeNameTest) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. src/net/http/fs_test.go

    	}
    }
    
    func getBody(t *testing.T, testName string, req Request, client *Client) (*Response, []byte) {
    	r, err := client.Do(&req)
    	if err != nil {
    		t.Fatalf("%s: for URL %q, send error: %v", testName, req.URL.String(), err)
    	}
    	b, err := io.ReadAll(r.Body)
    	if err != nil {
    		t.Fatalf("%s: for URL %q, reading body: %v", testName, req.URL.String(), err)
    	}
    	return r, b
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  4. src/net/http/clientserver_test.go

    	"net/url"
    	"os"
    	"reflect"
    	"runtime"
    	"slices"
    	"strings"
    	"sync"
    	"sync/atomic"
    	"testing"
    	"time"
    )
    
    type testMode string
    
    const (
    	http1Mode  = testMode("h1")     // HTTP/1.1
    	https1Mode = testMode("https1") // HTTPS/1.1
    	http2Mode  = testMode("h2")     // HTTP/2
    )
    
    type testNotParallelOpt struct{}
    
    var (
    	testNotParallel = testNotParallelOpt{}
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  5. pkg/volume/csi/csi_attacher_test.go

    				t.Skipf("Skipping intentional failure on existing data when running as root.")
    			}
    		}
    		t.Run(tc.testName, func(t *testing.T) {
    			if tc.skipOnWindows && goruntime.GOOS == "windows" {
    				t.Skipf("Skipping test case on Windows: %s", tc.testName)
    			}
    			t.Logf("Running test case: %s", tc.testName)
    
    			// Setup
    			// Create a new attacher
    			fakeClient := fakeclient.NewSimpleClientset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
  6. src/net/http/client_test.go

    func testClientTimeoutCancel(t *testing.T, mode testMode) {
    	testDone := make(chan struct{})
    	ctx, cancel := context.WithCancel(context.Background())
    
    	cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		w.(Flusher).Flush()
    		<-testDone
    	}))
    	defer close(testDone)
    
    	cst.c.Timeout = 1 * time.Hour
    	req, _ := NewRequest("GET", cst.ts.URL, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  7. src/net/http/transport_test.go

    func TestIdleConnH2Crash(t *testing.T) { run(t, testIdleConnH2Crash, []testMode{http2Mode}) }
    func testIdleConnH2Crash(t *testing.T, mode testMode) {
    	cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		// nothing
    	}))
    
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	sawDoErr := make(chan bool, 1)
    	testDone := make(chan struct{})
    	defer close(testDone)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  8. pkg/bootstrap/option/instances_test.go

    		{
    			testName: "zone",
    			key:      "zone",
    			option:   option.Zone("fake"),
    			expected: "fake",
    		},
    		{
    			testName: "sub zone",
    			key:      "sub_zone",
    			option:   option.SubZone("fake"),
    			expected: "fake",
    		},
    		{
    			testName: "node metadata nil",
    			key:      "meta_json_str",
    			option:   option.NodeMetadata(nil, nil),
    			expected: nil,
    		},
    		{
    			testName: "node metadata",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  9. pkg/kubelet/preemption/preemption_test.go

    		} else if r.expectErr && outErr == nil {
    			t.Errorf("evictPodsToFreeRequests expected an error but returned a successful output=%v during the %s test.", outputPods, r.testName)
    		} else if !podListEqual(r.expectedOutput, outputPods) {
    			t.Errorf("evictPodsToFreeRequests expected %v but got %v during the %s test.", r.expectedOutput, outputPods, r.testName)
    		}
    		podKiller.clear()
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 24 10:04:08 UTC 2022
    - 19.2K bytes
    - Viewed (0)
  10. src/net/http/serve_test.go

    	// Only testing HTTP/1, and our http2 server doesn't support hijacking.
    	run(t, func(t *testing.T, mode testMode) {
    		testHandlerPanic(t, true, mode, nil, "intentional death for testing")
    	}, []testMode{http1Mode})
    }
    
    func testHandlerPanic(t *testing.T, withHijack bool, mode testMode, wrapper func(Handler) Handler, panicValue any) {
    	// Direct log output to a pipe.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
Back to top