Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for hello1 (0.34 sec)

  1. cmd/server_test.go

    	c.Assert(response.ContentLength, int64(len([]byte("hello world"))))
    	var buffer2 bytes.Buffer
    	// retrieve the contents of response body.
    	n, err := io.Copy(&buffer2, response.Body)
    	c.Assert(err, nil)
    	c.Assert(n, int64(len([]byte("hello world"))))
    	// asserted the contents of the fetched object with the expected result.
    	c.Assert(true, bytes.Equal(buffer2.Bytes(), []byte("hello world")))
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    	{V(uint64(1 << 32)), V(string("\uFFFD"))},
    	{V(uintptr(0x110004)), V(string("\uFFFD"))},
    
    	// named string
    	{V(MyString("hello")), V(string("hello"))},
    	{V(string("hello")), V(MyString("hello"))},
    	{V(string("hello")), V(string("hello"))},
    	{V(MyString("hello")), V(MyString("hello"))},
    	{V(MyString("bytes1")), V([]byte("bytes1"))},
    	{V([]byte("bytes2")), V(MyString("bytes2"))},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. src/net/http/serve_test.go

    	}
    
    	_, err = rwc.Write([]byte("hello"))
    	if err != nil {
    		t.Fatalf("failed to write to body: %v", err)
    	}
    
    	b := make([]byte, 5)
    	_, err = io.ReadFull(rwc, b)
    	if err != nil {
    		t.Fatalf("failed to read from body: %v", err)
    	}
    
    	if string(b) != "hello" {
    		t.Fatalf("unexpected value read from body:\ngot: %q\nwant: %q", b, "hello")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  4. cmd/object-handlers_test.go

    					}
    				}
    			}
    		}
    	}
    
    	// Test for Anonymous/unsigned http request.
    	anonReq, err := newTestRequest(http.MethodPut, getPutObjectURL("", bucketName, objectName),
    		int64(len("hello")), bytes.NewReader([]byte("hello")))
    	if err != nil {
    		t.Fatalf("MinIO %s: Failed to create an anonymous request for %s/%s: <ERROR> %v",
    			instanceType, bucketName, objectName, err)
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 161.9K bytes
    - Viewed (0)
  5. src/net/http/transport_test.go

    	}
    	ts := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		w.Header().Set("Content-Length", "5")
    		w.Header().Set("Content-Type", "text/plain")
    		w.Write([]byte("Hello"))
    		w.(Flusher).Flush()
    		conn, buf, _ := w.(Hijacker).Hijack()
    		buf.Flush()
    		conn.Close()
    	})).ts
    	c := ts.Client()
    
    	// Do a bunch of traffic from different goroutines. Send to activityc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  6. src/database/sql/sql_test.go

    	if err != nil {
    		t.Fatal("exec create", err)
    	}
    
    	o1 := ""
    	_, err = db.ExecContext(ctx, "INSERT|keys|dec1=?A,str1=?,out1=?O1,array1=?", Named("A", decimalInt{123}), "hello", Named("O1", Out{Dest: &o1}), []int64{42, 128, 707}, doNotInclude{})
    	if err != nil {
    		t.Fatal("exec insert", err)
    	}
    	var (
    		str1 string
    		dec1 decimalInt
    		arr1 []int64
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  7. pkg/scheduler/internal/queue/scheduling_queue_test.go

    	m := map[string][]framework.PreEnqueuePlugin{"": {plugin.(framework.PreEnqueuePlugin)}}
    	q := NewTestQueue(ctx, newDefaultQueueSort(), WithPreEnqueuePluginMap(m))
    
    	gatedPod := st.MakePod().SchedulingGates([]string{"hello world"}).Obj()
    	if err := q.Add(logger, gatedPod); err != nil {
    		t.Error("Error calling Add")
    	}
    
    	if !q.unschedulablePods.get(gatedPod).Gated {
    		t.Error("expected pod to be gated")
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
Back to top