github.com/anycable/anycable-go@v1.5.1/mocks/common.go (about)

     1  package mocks
     2  
     3  import "github.com/anycable/anycable-go/common"
     4  
     5  // NewMockResult builds a new result with sid as transmission
     6  func NewMockResult(sid string) *common.CommandResult {
     7  	return &common.CommandResult{Transmissions: []string{sid}, Disconnect: false, StopAllStreams: false}
     8  }