Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for TestSparse (0.27 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/sparse_test.go

    	panic("not supported")
    }
    
    type FakeV2DifferentObj struct {
    	metav1.TypeMeta
    	metav1.ObjectMeta
    }
    
    func (*FakeV2DifferentObj) DeepCopyObject() runtime.Object {
    	panic("not supported")
    }
    func TestSparse(t *testing.T) {
    	v1 := schema.GroupVersion{Group: "mygroup", Version: "v1"}
    	v2 := schema.GroupVersion{Group: "mygroup", Version: "v2"}
    
    	scheme := runtime.NewScheme()
    	scheme.AddKnownTypes(v1, &FakeV1Obj{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. src/internal/dag/parse_test.go

    			} else if got && !want {
    				t.Errorf("%s->%s present but not expected", n1, n2)
    			} else if want && !got {
    				t.Errorf("%s->%s missing but expected", n1, n2)
    			}
    		}
    	}
    }
    
    func TestParse(t *testing.T) {
    	// Basic smoke test for graph parsing.
    	g := mustParse(t, diamond)
    
    	wantNodes := strings.Fields("a b c d")
    	if !reflect.DeepEqual(wantNodes, g.Nodes) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 04 15:31:42 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/util/KuromojiCSVUtilTest.java

    import static org.hamcrest.Matchers.is;
    
    import java.util.Arrays;
    import java.util.List;
    
    import org.codelibs.fess.unit.UnitFessTestCase;
    
    public class KuromojiCSVUtilTest extends UnitFessTestCase {
        public void test_parse() {
            String value;
            List<String> expected;
            List<String> actual;
    
            value = "フェス";
            expected = Arrays.asList("フェス");
            actual = Arrays.asList(KuromojiCSVUtil.parse(value));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. pkg/config/schema/ast/ast_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package ast
    
    import (
    	"testing"
    
    	. "github.com/onsi/gomega"
    )
    
    func TestParse(t *testing.T) {
    	cases := []struct {
    		input    string
    		expected *Metadata
    	}{
    		{
    			input:    ``,
    			expected: &Metadata{},
    		},
    		{
    			input: `
    resources:
      - kind:         "VirtualService"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/util/GsaConfigParserTest.java

        @Override
        public void setUp() throws Exception {
            super.setUp();
            ComponentUtil.register(new SystemHelper(), "systemHelper");
        }
    
        public void test_parse() throws IOException {
            GsaConfigParser parser = new GsaConfigParser();
            try (InputStream is = ResourceUtil.getResourceAsStream("data/gsaconfig.xml")) {
                parser.parse(new InputSource(is));
            }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. internal/amztime/parse_test.go

    // Package amztime implements AWS specific time parsing and deviations
    package amztime
    
    import (
    	"errors"
    	"testing"
    	"time"
    )
    
    func TestParse(t *testing.T) {
    	type testCase struct {
    		expectedErr  error
    		expectedTime time.Time
    		timeStr      string
    	}
    	testCases := []testCase{
    		{
    			ErrMalformedDate,
    			time.Time{},
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Sep 07 14:24:54 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  7. pkg/config/protocol/instance_test.go

    )
    
    func TestIsHTTP(t *testing.T) {
    	if protocol.UDP.IsHTTP() {
    		t.Errorf("UDP is not HTTP protocol")
    	}
    	if !protocol.GRPC.IsHTTP() {
    		t.Errorf("gRPC is HTTP protocol")
    	}
    }
    
    func TestParse(t *testing.T) {
    	testPairs := []struct {
    		name string
    		out  protocol.Instance
    	}{
    		{"tcp", protocol.TCP},
    		{"http", protocol.HTTP},
    		{"HTTP", protocol.HTTP},
    		{"Http", protocol.HTTP},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 11 16:27:16 UTC 2022
    - 2K bytes
    - Viewed (0)
  8. src/text/template/parse/parse_test.go

    			t.Errorf("%s=(%q): got\n\t%v\nexpected\n\t%v", test.name, test.input, result, test.result)
    		}
    	}
    }
    
    func TestParse(t *testing.T) {
    	testParse(false, t)
    }
    
    // Same as TestParse, but we copy the node first
    func TestParseCopy(t *testing.T) {
    	testParse(true, t)
    }
    
    func TestParseWithComments(t *testing.T) {
    	textFormat = "%q"
    	defer func() { textFormat = "%s" }()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

            assertEquals("PrunedTag [tag=" + tag + ", id=" + id + ", css=" + css + ", attrName=" + attrName + ", attrValue=" + attrValue + "]",
                    prunedtag.toString());
        }
    
        public void test_parse() {
            PrunedTag[] tags = PrunedTag.parse("");
            assertEquals(0, tags.length);
    
            tags = PrunedTag.parse("a");
            assertEquals(1, tags.length);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. src/flag/flag_test.go

    	} else if f.Args()[0] != extra {
    		t.Errorf("expected argument %q got %q", extra, f.Args()[0])
    	}
    }
    
    func TestParse(t *testing.T) {
    	ResetForTesting(func() { t.Error("bad parse") })
    	testParse(CommandLine, t)
    }
    
    func TestFlagSetParse(t *testing.T) {
    	testParse(NewFlagSet("test", ContinueOnError), t)
    }
    
    // Declare a user-defined flag type.
    type flagVar []string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:38:24 UTC 2024
    - 22K bytes
    - Viewed (0)
Back to top