Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 151 for parseList (0.14 sec)

  1. pkg/test/framework/components/echo/deployment/builder.go

    	expected := sets.New[string]()
    	for _, subset := range config.Subsets {
    		expected.InsertAll(parseList(subset.Annotations[annotation.InjectTemplates.Name])...)
    	}
    	if b.templates == nil || b.templates[c.Name()] == nil {
    		return expected.IsEmpty()
    	}
    
    	return b.templates[c.Name()].SupersetOf(expected)
    }
    
    func parseList(s string) []string {
    	if len(strings.TrimSpace(s)) == 0 {
    		return nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. src/net/mail/message.go

    	return (&addrParser{s: address, dec: p.WordDecoder}).parseSingleAddress()
    }
    
    // ParseList parses the given string as a list of comma-separated addresses
    // of the form "Gogh Fir <******@****.***>" or "******@****.***".
    func (p *AddressParser) ParseList(list string) ([]*Address, error) {
    	return (&addrParser{s: list, dec: p.WordDecoder}).parseAddressList()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. src/net/mail/message_test.go

    				continue
    			}
    			if !reflect.DeepEqual([]*Address{addr}, test.exp) {
    				t.Errorf("Parse (single) of %q: got %+v, want %+v", test.addrsStr, addr, test.exp)
    			}
    		}
    
    		addrs, err := ap.ParseList(test.addrsStr)
    		if err != nil {
    			t.Errorf("Failed parsing (list) %q: %v", test.addrsStr, err)
    			continue
    		}
    		if !reflect.DeepEqual(addrs, test.exp) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  4. src/strconv/atoi_test.go

    		testErr := test.errStub("ParseInt", test.arg)
    		_, err := ParseInt("0", 0, test.arg)
    		if !equalError(testErr, err) {
    			t.Errorf("ParseInt(\"0\", 0, %v) = 0, %v want 0, %v",
    				test.arg, err, testErr)
    		}
    	}
    }
    
    func TestParseUintBitSize(t *testing.T) {
    	for i := range parseBitSizeTests {
    		test := &parseBitSizeTests[i]
    		testErr := test.errStub("ParseUint", test.arg)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 21 05:09:21 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  5. src/internal/fuzz/encoding.go

    	}
    }
    
    // parseUint returns an unsigned integer of value val and type typ.
    func parseUint(val, typ string) (any, error) {
    	switch typ {
    	case "uint":
    		i, err := strconv.ParseUint(val, 0, 64)
    		return uint(i), err
    	case "uint8", "byte":
    		i, err := strconv.ParseUint(val, 0, 8)
    		return uint8(i), err
    	case "uint16":
    		i, err := strconv.ParseUint(val, 0, 16)
    		return uint16(i), err
    	case "uint32":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  6. internal/config/notify/parse.go

    			var host *xnet.Host
    			host, err = xnet.ParseHost(s)
    			if err != nil {
    				break
    			}
    			brokers = append(brokers, *host)
    		}
    		if err != nil {
    			return nil, err
    		}
    
    		queueLimitEnv := target.EnvKafkaQueueLimit
    		if k != config.Default {
    			queueLimitEnv = queueLimitEnv + config.Default + k
    		}
    		queueLimit, err := strconv.ParseUint(env.Get(queueLimitEnv, kv.Get(target.KafkaQueueLimit)), 10, 64)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 46.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/profile/legacy_profile.go

    		// Skip non-executable entries.
    		return nil, nil
    	}
    	if mapping.Start, err = strconv.ParseUint(start, 16, 64); err != nil {
    		return nil, errUnrecognized
    	}
    	if mapping.Limit, err = strconv.ParseUint(end, 16, 64); err != nil {
    		return nil, errUnrecognized
    	}
    	if offset != "" {
    		if mapping.Offset, err = strconv.ParseUint(offset, 16, 64); err != nil {
    			return nil, errUnrecognized
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 32.8K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/labels.go

    	// Just set the value to 0
    	return 0, nil
    }
    
    func getUint64ValueFromLabel(labels map[string]string, label string) (uint64, error) {
    	if strValue, found := labels[label]; found {
    		intValue, err := strconv.ParseUint(strValue, 16, 64)
    		if err != nil {
    			// This really should not happen. Just set value to 0 to handle this abnormal case
    			return 0, err
    		}
    		return intValue, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. internal/s3select/sql/value_test.go

    			fields: fields{
    				value: []byte("9223372036854775808"),
    			},
    			// Seems to be what strconv.ParseInt returns
    			want:   math.MaxInt64,
    			wantOK: false,
    		},
    		{
    			name: "min-underflow",
    			fields: fields{
    				value: []byte("-9223372036854775809"),
    			},
    			// Seems to be what strconv.ParseInt returns
    			want:   math.MinInt64,
    			wantOK: false,
    		},
    		{
    			name: "zerospace",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  10. src/regexp/syntax/parse_test.go

    // license that can be found in the LICENSE file.
    
    package syntax
    
    import (
    	"fmt"
    	"strings"
    	"testing"
    	"unicode"
    )
    
    type parseTest struct {
    	Regexp string
    	Dump   string
    }
    
    var parseTests = []parseTest{
    	// Base cases
    	{`a`, `lit{a}`},
    	{`a.`, `cat{lit{a}dot{}}`},
    	{`a.b`, `cat{lit{a}dot{}lit{b}}`},
    	{`ab`, `str{ab}`},
    	{`a.b.c`, `cat{lit{a}dot{}lit{b}dot{}lit{c}}`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:02:30 UTC 2023
    - 16.2K bytes
    - Viewed (0)
Back to top