Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for zoo (0.02 sec)

  1. src/encoding/json/example_marshaling_test.go

    	var zoo []Animal
    	if err := json.Unmarshal([]byte(blob), &zoo); err != nil {
    		log.Fatal(err)
    	}
    
    	census := make(map[Animal]int)
    	for _, animal := range zoo {
    		census[animal] += 1
    	}
    
    	fmt.Printf("Zoo Census:\n* Gophers: %d\n* Zebras:  %d\n* Unknown: %d\n",
    		census[Gopher], census[Zebra], census[Unknown])
    
    	// Output:
    	// Zoo Census:
    	// * Gophers: 3
    	// * Zebras:  2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 03 20:18:52 UTC 2016
    - 1.2K bytes
    - Viewed (0)
  2. src/encoding/xml/example_marshaling_test.go

    		<animal>gopher</animal>
    		<animal>zebra</animal>
    	</animals>`
    	var zoo struct {
    		Animals []Animal `xml:"animal"`
    	}
    	if err := xml.Unmarshal([]byte(blob), &zoo); err != nil {
    		log.Fatal(err)
    	}
    
    	census := make(map[Animal]int)
    	for _, animal := range zoo.Animals {
    		census[animal] += 1
    	}
    
    	fmt.Printf("Zoo Census:\n* Gophers: %d\n* Zebras:  %d\n* Unknown: %d\n",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 12 14:18:06 UTC 2018
    - 1.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/watch/filter_test.go

    	table := []Event{
    		{Type: Added, Object: testType("foo")},
    		{Type: Added, Object: testType("bar")},
    		{Type: Added, Object: testType("baz")},
    		{Type: Added, Object: testType("qux")},
    		{Type: Added, Object: testType("zoo")},
    	}
    
    	source := NewFake()
    	filtered := Filter(source, func(e Event) (Event, bool) {
    		return e, e.Object.(testType)[0] != 'b'
    	})
    
    	go func() {
    		for _, item := range table {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 16 11:56:41 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  4. pkg/kubelet/container/helpers_test.go

    			},
    			envs: []EnvVar{
    				{
    					Name:  "VAR_TEST",
    					Value: "zoo",
    				},
    				{
    					Name:  "VAR_TEST2",
    					Value: "boo",
    				},
    				{
    					Name:  "VAR_TEST3",
    					Value: "roo",
    				},
    			},
    			expectedCommand: []string{"boo--zoo", "foo", "roo"},
    			expectedArgs:    []string{"foo", "zoo", "boo"},
    		},
    	}
    
    	for _, tc := range cases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  5. pkg/config/schema/collection/schemas_test.go

    		})
    	}
    }
    
    func TestSchemas_Validate_Error(t *testing.T) {
    	g := NewWithT(t)
    	b := collection.NewSchemasBuilder()
    
    	s1 := resource.Builder{
    		Kind:         "Zoo",
    		ProtoPackage: "github.com/gogo/protobuf/types",
    		Proto:        "zoo",
    	}.BuildNoValidate()
    	b.MustAdd(s1)
    
    	err := b.Build().Validate()
    	g.Expect(err).NotTo(BeNil())
    }
    
    func TestSchemas_ForEach(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  6. pkg/test/framework/label/labels_test.go

    		{filter: "", labels: NewSet(Postsubmit), expected: true},
    		{filter: "", labels: NewSet(Postsubmit, CustomSetup), expected: true},
    		{filter: "$requires.kube", labels: NewSet(Postsubmit, CustomSetup), err: true},
    		{filter: "zoo", labels: NewSet(Postsubmit, CustomSetup), expected: true},
    		{filter: "postsubmit", labels: NewSet(Postsubmit), expected: true},
    		{filter: "postsubmit", labels: NewSet(CustomSetup), expected: false},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 18 17:08:05 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  7. cmd/testdata/undeleteable-object.tgz

    ·BucketTargetsConfigJÄ »BucketTargetsConfigMÄ µPolicyC multisitea/data/disterasure/xl3/.minio.sys/buckets/bucket/.usage-cache.bin.bkp/xl.meta XL2 Æ } Ä$•Ä Ó É žÕô Ä ö / Å Qƒ¤Type ¥V2ObjÞ ¢IDÄ ¤DDirÄ emJ½¥ºI œú\¨U¯ ¦EcAlgo £EcM £EcN §EcBSizeÒ §EcIndex ¦EcDistœ ¨CSumAlgo ¨PartNums‘ ©PartETagsÀ©PartSizes‘Ñ ŠªPartASizes‘Ñ Š¤SizeÑ Š¥MTimeÓ É žÕô §MetaSys ¼x-minio-internal-inline-dataÄ true§MetaUsr‚¬content-type¸application/octet-stream¤etagÙ 481841022d5df9056cb9¡v Έ žl ¤nullÄ4 ­X Ë ÆÓóR7®Èh> îYcˆN£àÀ¸Q½:õXE+e...
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 26 00:31:12 UTC 2024
    - 8.7M bytes
    - Viewed (0)
  8. cmd/utils_test.go

    		{[]string{"a", "b"}, ""},
    		{[]string{"a", "a"}, "a"},
    		{[]string{"a/", "a/"}, "a/"},
    		{[]string{"abcd/", ""}, ""},
    		{[]string{"abcd/foo/", "abcd/bar/"}, "abcd/"},
    		{[]string{"abcd/foo/bar/", "abcd/foo/bar/zoo"}, "abcd/foo/bar/"},
    	}
    
    	for i, test := range testCases {
    		foundPrefix := lcp(test.prefixes, true)
    		if foundPrefix != test.commonPrefix {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 23 21:28:14 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. src/regexp/testdata/testregex.c

    T("  Doug McIlroy    ******@****.***       (ast regex/testre in C++)\n");
    T("  Tom Lord        ******@****.***            (rx tests)\n");
    T("  Henry Spencer   henry@zoo.toronto.edu       (original public regex)\n");
    T("  Andrew Hume     ******@****.***     (gre tests)\n");
    T("  John Maddock    ******@****.*** (regex++ tests)\n");
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  10. fess-crawler-lasta/src/main/resources/crawler/extractor.xml

    				"application/x-webarchive",
    				"application/x-x509-ca-cert",
    				"application/x-xfig",
    				"application/x-xpinstall",
    				"application/x-xmind",
    				"application/x-xz",
    				"application/x-zoo",
    				"application/x400-bp",
    				"application/xcap-att+xml",
    				"application/xcap-caps+xml",
    				"application/xcap-el+xml",
    				"application/xcap-error+xml",
    				"application/xcap-ns+xml",
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Sat Aug 01 21:40:30 UTC 2020
    - 49K bytes
    - Viewed (0)
Back to top