Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 660 for tolen (0.05 sec)

  1. src/text/template/parse/parse.go

    	return t.token[0]
    }
    
    // nextNonSpace returns the next non-space token.
    func (t *Tree) nextNonSpace() (token item) {
    	for {
    		token = t.next()
    		if token.typ != itemSpace {
    			break
    		}
    	}
    	return token
    }
    
    // peekNonSpace returns but does not consume the next non-space token.
    func (t *Tree) peekNonSpace() item {
    	token := t.nextNonSpace()
    	t.backup()
    	return token
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

        response = client.get("/users?token=monica")
        assert response.status_code == 400
        assert response.json() == {"detail": "No Jessica token provided"}
    
    
    @needs_py39
    def test_items_token_jessica(client: TestClient):
        response = client.get(
            "/items?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 200
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  3. src/go/constant/value.go

    // imaginary, character, or string value for a Go literal string. The
    // tok value must be one of [token.INT], [token.FLOAT], [token.IMAG],
    // [token.CHAR], or [token.STRING]. The final argument must be zero.
    // If the literal string syntax is invalid, the result is an [Unknown].
    func MakeFromLiteral(lit string, tok token.Token, zero uint) Value {
    	if zero != 0 {
    		panic("MakeFromLiteral called with non-zero last argument")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 34K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

                    },
                    {
                        "loc": ["body", "token"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    def test_post_form_no_file(client: TestClient):
        response = client.post("/files/", data={"token": "foo"})
        assert response.status_code == 422, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an_py39.py

                    },
                    {
                        "loc": ["body", "token"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    @needs_py39
    def test_post_form_no_file(client: TestClient):
        response = client.post("/files/", data={"token": "foo"})
        assert response.status_code == 422, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. tests/integration/security/jwt_test.go

    						opts.HTTP.Path = "/valid-token?token_value=" + jwt.TokenIssuer1
    						opts.Check = check.Status(http.StatusForbidden)
    					},
    				},
    				{
    					name: "valid-token-set",
    					customizeCall: func(t framework.TestContext, from echo.Instance, opts *echo.CallOptions) {
    						opts.HTTP.Path = "/valid-token?token=" + jwt.TokenIssuer1 + "&secondary_token=" + jwt.TokenIssuer1
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 25.3K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/RegexBackedCSourceParserTest.groovy

            'A(X)'                                             | 'A'     | [token('X')]
            'A( X )'                                           | 'A'     | [token('X')]
            'ABC(x,y)'                                         | 'ABC'   | [token('x'), token('y')]
            'ABC( \t x \t,  y  )'                              | 'ABC'   | [token('x'), token('y')]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 34.3K bytes
    - Viewed (0)
  8. security/pkg/credentialfetcher/plugin/gce_test.go

    	t.Helper()
    	for i, token := range tokens {
    		// if expectedToken is not set, mock metadata server returns an auto-generated fake token.
    		wantToken := fmt.Sprintf("%s%d", fakeTokenPrefix, i+1)
    		if expectedToken != "" {
    			wantToken = expectedToken
    		}
    		if token != wantToken {
    			t.Errorf("%s, #%d call to GetPlatformCredential() returns token: %s, want: %s",
    				id, i, token, wantToken)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 03 18:09:59 UTC 2021
    - 10.1K bytes
    - Viewed (0)
  9. src/encoding/xml/xml_test.go

    	d := NewDecoder(strings.NewReader(testInputAltEncoding))
    	token, err := d.RawToken()
    	if token == nil {
    		t.Fatalf("expected a token on first RawToken call")
    	}
    	if err != nil {
    		t.Fatal(err)
    	}
    	token, err = d.RawToken()
    	if token != nil {
    		t.Errorf("expected a nil token; got %#v", token)
    	}
    	if err == nil {
    		t.Fatalf("expected an error on second RawToken call")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py

                    },
                    {
                        "loc": ["body", "token"],
                        "msg": "field required",
                        "type": "value_error.missing",
                    },
                ]
            }
        )
    
    
    def test_post_form_no_file(client: TestClient):
        response = client.post("/files/", data={"token": "foo"})
        assert response.status_code == 422, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top