Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,250 for struct (0.05 sec)

  1. internal/pubsub/pubsub_test.go

    	}
    }
    
    func TestUnsubscribe(t *testing.T) {
    	ps := New[Maskable, Maskable](2)
    	ch1 := make(chan Maskable, 1)
    	ch2 := make(chan Maskable, 1)
    	doneCh1 := make(chan struct{})
    	doneCh2 := make(chan struct{})
    	if err := ps.Subscribe(MaskAll, ch1, doneCh1, nil); err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    	if err := ps.Subscribe(MaskAll, ch2, doneCh2, nil); err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/msrpc/srvsvc.idl

    	version(3.0)
    ]
    interface srvsvc
    {
    	import "../rpc.idl";
    
    	typedef struct {
    		[string] wchar_t *netname;
    	} ShareInfo0;
    
    	typedef struct {
    		int count;
    		[size_is(count)] ShareInfo0 *array;
    	} ShareInfoCtr0;
    
    	typedef struct {
    		[string] wchar_t *netname;
    		int type;
    		[string] wchar_t *remark;
    	} ShareInfo1;
    
    	typedef struct {
    		int count;
    		[size_is(count)] ShareInfo1 *array;
    	} ShareInfoCtr1;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/msrpc/samr.idl

    	[op(0x07)]
    	int SamrOpenDomain([in] policy_handle *handle,
    			[in] uint32_t access_mask,
    			[in] sid_t *sid,
    			[out] policy_handle *domain_handle);
    
    	typedef struct {
    		uint32_t idx;
    		unicode_string name;
    	} SamrSamEntry;
    
    	typedef struct {
    		uint32_t count;
    		[size_is(count)] SamrSamEntry *entries;
    	} SamrSamArray;
    
    	[op(0x0f)]
    	int SamrEnumerateAliasesInDomain([in] policy_handle *domain_handle,
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.1K bytes
    - Viewed (0)
  4. schema/schema_test.go

    			f.Readable = true
    		})
    	}
    }
    
    func TestEmbeddedStruct(t *testing.T) {
    	type CorpBase struct {
    		gorm.Model
    		OwnerID string
    	}
    
    	type Company struct {
    		ID      int
    		OwnerID int
    		Name    string
    		Ignored string `gorm:"-"`
    	}
    
    	type Corp struct {
    		CorpBase
    		Base Company `gorm:"embedded;embeddedPrefix:company_"`
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. cmd/object-api-datatypes.go

    // client during CompleteMultipartUpload request.
    type CompleteMultipartUpload struct {
    	Parts []CompletePart `xml:"Part"`
    }
    
    // NewMultipartUploadResult contains information about a newly created multipart upload.
    type NewMultipartUploadResult struct {
    	UploadID     string
    	ChecksumAlgo string
    }
    
    type getObjectAttributesResponse struct {
    	ETag         string                    `xml:",omitempty"`
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  6. internal/grid/connection_test.go

    		localServer.Close()
    		remote.debugMsg(debugWaitForExit)
    		local.debugMsg(debugWaitForExit)
    	}()
    
    	cleanReqs := make(chan struct{})
    	gotCall := make(chan struct{})
    	defer close(cleanReqs)
    	// 1: Block forever
    	h1 := func(payload []byte) ([]byte, *RemoteErr) {
    		gotCall <- struct{}{}
    		<-cleanReqs
    		return nil, nil
    	}
    	// 2: Also block, but with streaming.
    	h2 := StreamHandler{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 08 21:44:00 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. utils/utils_test.go

    		if fields := strings.FieldsFunc(db, IsValidDBNameChar); len(fields) != 1 {
    			t.Fatalf("failed to parse db name %v", db)
    		}
    	}
    }
    
    func TestCheckTruth(t *testing.T) {
    	checkTruthTests := []struct {
    		v   string
    		out bool
    	}{
    		{"123", true},
    		{"true", true},
    		{"", false},
    		{"false", false},
    		{"False", false},
    		{"FALSE", false},
    		{"\u0046alse", false},
    	}
    
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Aug 22 11:03:42 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  8. internal/s3select/sql/value_test.go

    	},
    	func() *Value {
    		return FromTimestamp(time.Time{})
    	},
    	func() *Value {
    		return FromString("")
    	},
    }
    
    func TestValue_SameTypeAs(t *testing.T) {
    	type fields struct {
    		a, b Value
    	}
    	type test struct {
    		name   string
    		fields fields
    		wantOk bool
    	}
    	var tests []test
    	for i := range valueBuilders {
    		a := valueBuilders[i]()
    		for j := range valueBuilders {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  9. internal/hash/errors.go

    type SHA256Mismatch struct {
    	ExpectedSHA256   string
    	CalculatedSHA256 string
    }
    
    func (e SHA256Mismatch) Error() string {
    	return "Bad sha256: Expected " + e.ExpectedSHA256 + " does not match calculated " + e.CalculatedSHA256
    }
    
    // BadDigest - Content-MD5 you specified did not match what we received.
    type BadDigest struct {
    	ExpectedMD5   string
    	CalculatedMD5 string
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon May 15 21:08:54 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  10. istioctl/pkg/authz/listener.go

    	policyToRule := map[string]map[string]struct{}{}
    
    	addPolicy := func(action rbacpb.RBAC_Action, name string, rule string) {
    		if actionToPolicy[action] == nil {
    			actionToPolicy[action] = map[string]struct{}{}
    		}
    		if policyToRule[name] == nil {
    			policyToRule[name] = map[string]struct{}{}
    		}
    		actionToPolicy[action][name] = struct{}{}
    		policyToRule[name][rule] = struct{}{}
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Sep 11 15:29:30 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top