Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 136 for testPos (0.14 sec)

  1. src/cmd/compile/internal/syntax/nodes_test.go

    	testPos(t, exprs, "package p; var _ = T{ ", " }",
    		func(f *File) Node { return f.DeclList[0].(*VarDecl).Values.(*CompositeLit).ElemList[0] },
    	)
    
    	// embed types in a function  signature so we can test ... types
    	testPos(t, types, "package p; func f(", ")",
    		func(f *File) Node { return f.DeclList[0].(*FuncDecl).Type.ParamList[0].Type },
    	)
    
    	testPos(t, fields, "package p; func f(", ")",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 18:45:06 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  2. src/cmd/internal/src/pos_test.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package src
    
    import (
    	"fmt"
    	"testing"
    )
    
    func TestPos(t *testing.T) {
    	f0 := NewFileBase("", "")
    	f1 := NewFileBase("f1", "f1")
    	f2 := NewLinePragmaBase(Pos{}, "f2", "f2", 10, 0)
    	f3 := NewLinePragmaBase(MakePos(f1, 10, 1), "f3", "f3", 100, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 14 23:50:26 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  3. src/text/template/parse/lex_test.go

    		{itemLeftDelim, 6, "{{", 2},
    		{itemIdentifier, 10, "y", 2},
    		{itemRightDelim, 11, "}}", 2},
    		{itemEOF, 13, "", 2},
    	}},
    }
    
    // The other tests don't check position, to make the test cases easier to construct.
    // This one does.
    func TestPos(t *testing.T) {
    	for _, test := range lexPosTests {
    		items := collect(&test, "", "")
    		if !equal(items, test.items, true) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 15:03:43 UTC 2022
    - 13.9K bytes
    - Viewed (0)
  4. src/text/scanner/scanner_test.go

    		if string(ch) != s.TokenText() {
    			t.Errorf("tok = %q, want %q", s.TokenText(), string(ch))
    		}
    	}
    	checkPos(t, s.Position, want)
    }
    
    func TestPos(t *testing.T) {
    	// corner case: empty source
    	s := new(Scanner).Init(strings.NewReader(""))
    	checkPos(t, s.Pos(), Position{Offset: 0, Line: 1, Column: 1})
    	s.Peek() // peek doesn't affect the position
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 17 03:41:50 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  5. fess-crawler/src/test/resources/extractor/msoffice/test_as.xlsx

    Shinsuke Sugaya <******@****.***> 1444529815 +0900
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 9K bytes
    - Viewed (0)
  6. pkg/config/analysis/analyzers/testdata/multicluster-unknown-serviceregistry.yaml

            server: https://1.2.3.4
          name: gke_istio-test_us-central1-f_istio-remote
        contexts:
        - context:
            cluster: gke_istio-test_us-central1-f_istio-remote
            user: gke_istio-test_us-central1-f_istio-remote
          name: gke_istio-test_us-central1-f_istio-remote
        current-context: gke_istio-test_us-central1-f_istio-remote
        kind: Config
        preferences: {}
        users:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 17 12:28:05 UTC 2021
    - 762 bytes
    - Viewed (0)
  7. src/regexp/testdata/testregex.c

    T("  Tom Lord        ******@****.***            (rx tests)\n");
    T("  Henry Spencer   ******@****.***       (original public regex)\n");
    T("  Andrew Hume     ******@****.***     (gre tests)\n");
    T("  John Maddock    ******@****.*** (regex++ tests)\n");
    T("  Philip Hazel    ******@****.***              (pcre tests)\n");
    T("  Ville Laurikari ******@****.***                   (libtre tests)\n");
    H("</PRE>\n");
    H("</BODY>\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)
  8. cluster/addons/addon-manager/kube-addons-test.sh

      EDITOR="sed -i 's/50m/600m/'" kubectl edit limits/limits -n ${TEST_NS}
      if kubectl get limits/limits -n ${TEST_NS} -o yaml | grep --silent "50m"; then
        error "failed to edit resource with sed -- test is broken"
        return 1
      fi
      create_resource_from_string "${limitrange}" "10" "1" "limitrange.yaml" "${TEST_NS}"
      if ! ( kubectl get limits/limits -n ${TEST_NS} -o yaml | grep --silent "50m"); then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Apr 25 02:46:18 UTC 2021
    - 9.3K bytes
    - Viewed (0)
  9. fess-crawler/src/test/resources/extractor/msoffice/test_as.docx

    Shinsuke Sugaya <******@****.***> 1444529815 +0900
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 10.5K bytes
    - Viewed (0)
  10. fess-crawler/src/test/resources/extractor/ooo/test_as.odt

    Shinsuke Sugaya <******@****.***> 1444529815 +0900
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Sun Oct 11 02:16:55 UTC 2015
    - 11.4K bytes
    - Viewed (0)
Back to top