Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 4,616 for Nest (0.18 sec)

  1. src/bufio/example_test.go

    // Copyright 2013 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 bufio_test
    
    import (
    	"bufio"
    	"bytes"
    	"fmt"
    	"os"
    	"strconv"
    	"strings"
    )
    
    func ExampleWriter() {
    	w := bufio.NewWriter(os.Stdout)
    	fmt.Fprint(w, "Hello, ")
    	fmt.Fprint(w, "world!")
    	w.Flush() // Don't forget to flush!
    	// Output: Hello, world!
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  2. src/archive/zip/zip_test.go

    		},
    	}
    
    	// write a zip file
    	buf := new(bytes.Buffer)
    	w := NewWriter(buf)
    
    	for _, test := range headerTests {
    		h := &FileHeader{
    			Name:  test.name,
    			Extra: test.extra,
    		}
    		_, err := w.CreateHeader(h)
    		if err != test.wanterr {
    			t.Errorf("error=%v, want %v", err, test.wanterr)
    		}
    	}
    
    	if err := w.Close(); err != nil {
    		t.Fatal(err)
    	}
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  3. istioctl/pkg/proxystatus/proxystatus_test.go

    	"k8s.io/cli-runtime/pkg/resource"
    	"k8s.io/client-go/rest/fake"
    	cmdtesting "k8s.io/kubectl/pkg/cmd/testing"
    	cmdutil "k8s.io/kubectl/pkg/cmd/util"
    
    	"istio.io/api/label"
    	"istio.io/istio/istioctl/pkg/cli"
    	"istio.io/istio/istioctl/pkg/clioptions"
    	"istio.io/istio/istioctl/pkg/multixds"
    	"istio.io/istio/istioctl/pkg/xds"
    	"istio.io/istio/pkg/kube"
    	"istio.io/istio/pkg/test/util/assert"
    )
    
    type execTestCase struct {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    		{"a☺b☻c☹d", "b", len("a☺")},               // non-ascii
    	}
    	for _, test := range testCases {
    		actual := LastIndexByte([]byte(test.a), test.b[0])
    		if actual != test.i {
    			t.Errorf("LastIndexByte(%q,%c) = %v; want %v", test.a, test.b[0], actual, test.i)
    		}
    	}
    }
    
    // test a larger buffer with different sizes and alignments
    func TestIndexByteBig(t *testing.T) {
    	var n = 1024
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  5. cmd/signature-v4_test.go

    				"X-Amz-SignedHeaders": "host;x-amz-content-sha256;x-amz-date",
    				"X-Amz-Credential":    fmt.Sprintf(credentialTemplate, "Z7IXGOO6BZ0REAN1Q26I", now.Format(yyyymmdd), "us-west-1"),
    			},
    			region:   "us-west-1",
    			expected: ErrInvalidAccessKeyID,
    		},
    		// (2) Should NOT fail with an invalid region if it doesn't verify it.
    		{
    			queryParams: map[string]string{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 10.4K bytes
    - Viewed (1)
  6. cmd/config-current_test.go

    	if err = newTestConfig(globalMinioDefaultRegion, objLayer); err != nil {
    		t.Fatalf("Init Test config failed")
    	}
    
    	if globalSite.Region != globalMinioDefaultRegion {
    		t.Errorf("Expecting region `us-east-1` found %s", globalSite.Region)
    	}
    
    	// Set new region and verify.
    	config.SetRegion(globalServerConfig, "us-west-1")
    	site, err := config.LookupSite(
    		globalServerConfig[config.SiteSubSys][config.Default],
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Dec 19 19:10:14 GMT 2022
    - 2K bytes
    - Viewed (0)
  7. cmd/signature-v4-utils_test.go

    		{"X-Amz-Content-Sha256", "", "", "", false},
    
    		// Test case - 2.
    		// Test case with "X-Amz-Content-Sha256" not set so we can skip.
    		{"", "", "", "", true},
    
    		// Test case - 3.
    		// Test case with "X-Amz-Content-Sha256" header set to  "UNSIGNED-PAYLOAD"
    		// When "X-Amz-Content-Sha256" header is set to  "UNSIGNED-PAYLOAD", validation of content sha256 has to be skipped.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/swig/swig_test.go

    	}
    
    	re := regexp.MustCompile(`[vV]ersion +(\d+)([.]\d+)?([.]\d+)?`)
    	matches := re.FindSubmatch(out)
    	if matches == nil {
    		// Can't find version number; hope for the best.
    		t.Logf("failed to find swig version, continuing")
    		return
    	}
    
    	var parseError error
    	atoi := func(s string) int {
    		x, err := strconv.Atoi(s)
    		if err != nil && parseError == nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:07 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  9. operator/cmd/mesh/test-util_test.go

    }
    
    func mustSelect(t test.Failer, selector map[string]string, labels map[string]string) {
    	t.Helper()
    	kselector := labels2.Set(selector).AsSelectorPreValidated()
    	if !kselector.Matches(labels2.Set(labels)) {
    		t.Fatalf("%v does not select %v", selector, labels)
    	}
    }
    
    func mustNotSelect(t test.Failer, selector map[string]string, labels map[string]string) {
    	t.Helper()
    Go
    - Registered: Wed Mar 20 22:53:08 GMT 2024
    - Last Modified: Tue Oct 31 14:48:28 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  10. cmd/server_test.go

    	testCases := []*TestSuiteCommon{
    		// Init and run test on ErasureSD backend with signature v4.
    		{serverType: "ErasureSD", signer: signerV4},
    		// Init and run test on ErasureSD backend with signature v2.
    		{serverType: "ErasureSD", signer: signerV2},
    		// Init and run test on ErasureSD backend, with tls enabled.
    		{serverType: "ErasureSD", signer: signerV4, secure: true},
    		// Init and run test on Erasure backend.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
Back to top