Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPubSub (0.08 sec)

  1. internal/pubsub/pubsub_test.go

    	if len(ps.subs) != 1 {
    		t.Fatal("expected 1 subscriber")
    	}
    	ps.Unlock()
    	close(doneCh2)
    }
    
    type maskString string
    
    func (m maskString) Mask() uint64 {
    	return 1
    }
    
    func TestPubSub(t *testing.T) {
    	ps := New[Maskable, Maskable](1)
    	ch1 := make(chan Maskable, 1)
    	doneCh1 := make(chan struct{})
    	defer close(doneCh1)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top