Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for repo (0.15 sec)

  1. src/cmd/asm/internal/asm/operand_test.go

    		})
    	}
    }
    
    type operandTest struct {
    	input, output string
    }
    
    type badOperandTest struct {
    	input, error string
    }
    
    // Examples collected by scanning all the assembly in the standard repo.
    
    var amd64OperandTests = []operandTest{
    	{"$(-1.0)", "$(-1.0)"},
    	{"$(0.0)", "$(0.0)"},
    	{"$(0x2000000+116)", "$33554548"},
    	{"$(0x3F<<7)", "$8064"},
    	{"$(112+8)", "$120"},
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Viewed (0)
  2. src/cmd/cgo/gcc.go

    // Otherwise, repr is used unprocessed as the type representation.
    func (tr *TypeRepr) Set(repr string, fargs ...interface{}) {
    	tr.Repr = repr
    	tr.FormatArgs = fargs
    }
    
    // FinishType completes any outstanding type mapping work.
    // In particular, it resolves incomplete pointer types.
    func (c *typeConv) FinishType(pos token.Pos) {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  3. misc/go_android_exec/main.go

    			// walking the tree and copying it piecewise. If the directory tree
    			// contains nested modules this could push a lot of unnecessary contents,
    			// but for the golang.org/x repos it seems to be significantly (~2x)
    			// faster than copying one file at a time (via filepath.WalkDir),
    			// apparently due to high latency in 'adb' commands.
    			if err := adb("push", modDir, deviceModDir); err != nil {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    }
    
    func TestToValidUTF8(t *testing.T) {
    	for _, tc := range toValidUTF8Tests {
    		got := ToValidUTF8([]byte(tc.in), []byte(tc.repl))
    		if !Equal(got, []byte(tc.out)) {
    			t.Errorf("ToValidUTF8(%q, %q) = %q; want %q", tc.in, tc.repl, got, tc.out)
    		}
    	}
    }
    
    func TestTrimSpace(t *testing.T) { runStringTests(t, TrimSpace, "TrimSpace", trimSpaceTests) }
    
    type RepeatTest struct {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  5. cmd/site-replication.go

    			if err != nil {
    				return err
    			}
    			err = xml.Unmarshal(replCfgSBytes, &replicationConfig)
    			if err != nil {
    				return err
    			}
    		}
    		var (
    			ruleID  = fmt.Sprintf("site-repl-%s", d)
    			hasRule bool
    		)
    		var ruleARN string
    		for _, r := range replicationConfig.Rules {
    			if r.ID == ruleID {
    				hasRule = true
    				ruleARN = r.Destination.Bucket
    			}
    		}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 184.1K bytes
    - Viewed (1)
  6. internal/s3select/sql/parser_test.go

    		// Object wildcard
    		".*",
    
    		// array wildcard
    		"[*]",
    	}
    	for i, tc := range cases {
    		err := p.ParseString(tc, &j)
    		if err != nil {
    			t.Fatalf("%d: %v", i, err)
    		}
    		// repr.Println(j, repr.Indent("  "), repr.OmitEmpty(true))
    	}
    }
    
    func TestJSONPath(t *testing.T) {
    	p := participle.MustBuild(
    		&JSONPath{},
    		participle.Lexer(sqlLexer),
    		participle.CaseInsensitive("Keyword"),
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  7. internal/s3select/sql/value.go

    	case time.Time:
    		return "TIMESTAMP"
    	case []byte:
    		return "BYTES"
    	case []Value:
    		return "ARRAY"
    	case Missing:
    		return "MISSING"
    	}
    	return "--"
    }
    
    // Repr returns a string representation of value.
    func (v Value) Repr() string {
    	switch x := v.value.(type) {
    	case nil:
    		return ":NULL"
    	case bool, int64, float64:
    		return fmt.Sprintf("%v:%s", v.value, v.GetTypeString())
    	case time.Time:
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    			if sizeS.failedCount > 0 {
    				res["repl-failed"] = fmt.Sprintf("%d versions, %d bytes", sizeS.failedCount, sizeS.failedSize)
    			}
    			if sizeS.pendingCount > 0 {
    				res["repl-pending"] = fmt.Sprintf("%d versions, %d bytes", sizeS.pendingCount, sizeS.pendingSize)
    			}
    			for tgt, st := range sizeS.replTargetStats {
    				res["repl-size-"+tgt] = strconv.FormatInt(st.replicatedSize, 10)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
Back to top