Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 100 for Simple (0.14 sec)

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

    	"text/scanner"
    
    	"cmd/internal/src"
    )
    
    // A ScanToken represents an input item. It is a simple wrapping of rune, as
    // returned by text/scanner.Scanner, plus a couple of extra values.
    type ScanToken rune
    
    const (
    	// Asm defines some two-character lexemes. We make up
    	// a rune/ScanToken value for them - ugly but simple.
    	LSH          ScanToken = -1000 - iota // << Left shift.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  2. operator/cmd/mesh/manifest_shared_test.go

    		return err
    	}
    	obj.SetResourceVersion(check.GetResourceVersion())
    	return clnt.Update(ctx, obj)
    }}
    
    // recreateSimpleTestEnv mocks fake kube api server which relies on a simple object tracker
    func recreateSimpleTestEnv() {
    	log.Infof("Creating simple test environment\n")
    	helmreconciler.TestMode = true
    	s := scheme.Scheme
    	s.AddKnownTypes(v1alpha1.SchemeGroupVersion, &v1alpha1.IstioOperator{})
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Feb 20 22:39:28 GMT 2024
    - 11.7K bytes
    - Viewed (1)
  3. src/cmd/asm/internal/lex/lex_test.go

    	"text/scanner"
    )
    
    type lexTest struct {
    	name   string
    	input  string
    	output string
    }
    
    var lexTests = []lexTest{
    	{
    		"empty",
    		"",
    		"",
    	},
    	{
    		"simple",
    		"1 (a)",
    		"1.(.a.)",
    	},
    	{
    		"simple define",
    		lines(
    			"#define A 1234",
    			"A",
    		),
    		"1234.\n",
    	},
    	{
    		"define without value",
    		"#define A",
    		"",
    	},
    	{
    		"macro without arguments",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/expr_test.go

    package asm
    
    import (
    	"cmd/asm/internal/lex"
    	"strings"
    	"testing"
    	"text/scanner"
    )
    
    type exprTest struct {
    	input  string
    	output int64
    	atEOF  bool
    }
    
    var exprTests = []exprTest{
    	// Simple
    	{"0", 0, true},
    	{"3", 3, true},
    	{"070", 8 * 7, true},
    	{"0x0f", 15, true},
    	{"0xFF", 255, true},
    	{"9223372036854775807", 9223372036854775807, true}, // max int64
    	// Unary
    	{"-0", 0, true},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  5. src/bufio/example_test.go

    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "shouldn't see an error scanning a string")
    	}
    	// Output:
    	// true
    }
    
    // Use a Scanner to implement a simple word-count utility by scanning the
    // input as a sequence of space-delimited tokens.
    func ExampleScanner_words() {
    	// An artificial input source.
    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)
  6. cmd/bucket-lifecycle-handlers_test.go

    }
    
    // Simple tests of bucket lifecycle: PUT, GET, DELETE.
    // Tests are related and the order is important.
    func testBucketLifecycleHandlers(obj ObjectLayer, instanceType, bucketName string, apiRouter http.Handler,
    	creds auth.Credentials, t *testing.T,
    ) {
    	// test cases with sample input and expected output.
    	testCases := []struct {
    		method     string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 13 20:52:33 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/flags/flags.go

    }
    
    var (
    	D        MultiFlag
    	I        MultiFlag
    	PrintOut int
    	DebugV   bool
    )
    
    func init() {
    	flag.Var(&D, "D", "predefined symbol with optional simple value -D=identifier=value; can be set multiple times")
    	flag.Var(&I, "I", "include directory; can be set multiple times")
    	flag.BoolVar(&DebugV, "v", false, "print debug output")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 19:18:23 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  8. internal/config/identity/openid/jwt_test.go

    	claimsMap.SetExpiry(time.Now().Add(time.Minute))
    	claimsMap.SetAccessKey("test-access")
    	if err := updateClaimsExpiry("3600", claimsMap.MapClaims); err != nil {
    		t.Error(err)
    	}
    	// Build simple token with updated expiration claim
    	token := jwtgo.NewWithClaims(jwtgo.SigningMethodHS256, claimsMap)
    	tokenString, err := token.SignedString(signKey)
    	if err != nil {
    		t.Error(err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  9. cmd/common-main_test.go

    					Value: "minio123",
    				},
    			},
    		},
    		{
    			`
    export MINIO_ROOT_USERminio
    export MINIO_ROOT_PASSWORD=minio123`,
    			true,
    			nil,
    		},
    		{
    			`
    # simple comment
    # MINIO_ROOT_USER=minioadmin
    # MINIO_ROOT_PASSWORD=minioadmin
    MINIO_ROOT_USER=minio
    MINIO_ROOT_PASSWORD=minio123`,
    			false,
    			[]envKV{
    				{
    					Key:   "MINIO_ROOT_USER",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/asm/parse.go

    			p.registerExtension(a, tok.String(), prefix)
    			p.expectOperandEnd()
    			return
    		} else if r1, r2, scale, ok := p.register(tok.String(), prefix); ok {
    			if scale != 0 {
    				p.errorf("expected simple register reference")
    			}
    			a.Type = obj.TYPE_REG
    			a.Reg = r1
    			if r2 != 0 {
    				// Form is R1:R2. It is on RHS and the second register
    				// needs to go into the LHS.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
Back to top