github.com/metacubex/quic-go@v0.44.1-0.20240520163451-20b689a59136/mockgen.go (about)

     1  //go:build gomock || generate
     2  
     3  package quic
     4  
     5  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_send_conn_test.go github.com/metacubex/quic-go SendConn"
     6  type SendConn = sendConn
     7  
     8  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_raw_conn_test.go github.com/metacubex/quic-go RawConn"
     9  type RawConn = rawConn
    10  
    11  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_sender_test.go github.com/metacubex/quic-go Sender"
    12  type Sender = sender
    13  
    14  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_stream_internal_test.go github.com/metacubex/quic-go StreamI"
    15  type StreamI = streamI
    16  
    17  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_crypto_stream_test.go github.com/metacubex/quic-go CryptoStream"
    18  type CryptoStream = cryptoStream
    19  
    20  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_receive_stream_internal_test.go github.com/metacubex/quic-go ReceiveStreamI"
    21  type ReceiveStreamI = receiveStreamI
    22  
    23  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_send_stream_internal_test.go github.com/metacubex/quic-go SendStreamI"
    24  type SendStreamI = sendStreamI
    25  
    26  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_stream_getter_test.go github.com/metacubex/quic-go StreamGetter"
    27  type StreamGetter = streamGetter
    28  
    29  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_stream_sender_test.go github.com/metacubex/quic-go StreamSender"
    30  type StreamSender = streamSender
    31  
    32  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_crypto_data_handler_test.go github.com/metacubex/quic-go CryptoDataHandler"
    33  type CryptoDataHandler = cryptoDataHandler
    34  
    35  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_frame_source_test.go github.com/metacubex/quic-go FrameSource"
    36  type FrameSource = frameSource
    37  
    38  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_ack_frame_source_test.go github.com/metacubex/quic-go AckFrameSource"
    39  type AckFrameSource = ackFrameSource
    40  
    41  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_stream_manager_test.go github.com/metacubex/quic-go StreamManager"
    42  type StreamManager = streamManager
    43  
    44  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_sealing_manager_test.go github.com/metacubex/quic-go SealingManager"
    45  type SealingManager = sealingManager
    46  
    47  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_unpacker_test.go github.com/metacubex/quic-go Unpacker"
    48  type Unpacker = unpacker
    49  
    50  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_packer_test.go github.com/metacubex/quic-go Packer"
    51  type Packer = packer
    52  
    53  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_mtu_discoverer_test.go github.com/metacubex/quic-go MTUDiscoverer"
    54  type MTUDiscoverer = mtuDiscoverer
    55  
    56  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_conn_runner_test.go github.com/metacubex/quic-go ConnRunner"
    57  type ConnRunner = connRunner
    58  
    59  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_quic_conn_test.go github.com/metacubex/quic-go QUICConn"
    60  type QUICConn = quicConn
    61  
    62  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_packet_handler_test.go github.com/metacubex/quic-go PacketHandler"
    63  type PacketHandler = packetHandler
    64  
    65  //go:generate sh -c "go run go.uber.org/mock/mockgen -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_packet_handler_manager_test.go github.com/metacubex/quic-go PacketHandlerManager"
    66  
    67  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -build_flags=\"-tags=gomock\" -package quic -self_package github.com/metacubex/quic-go -destination mock_packet_handler_manager_test.go github.com/metacubex/quic-go PacketHandlerManager"
    68  type PacketHandlerManager = packetHandlerManager
    69  
    70  // Need to use source mode for the batchConn, since reflect mode follows type aliases.
    71  // See https://github.com/golang/mock/issues/244 for details.
    72  //
    73  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -package quic -self_package github.com/metacubex/quic-go -source sys_conn_oob.go -destination mock_batch_conn_test.go -mock_names batchConn=MockBatchConn"
    74  
    75  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -package quic -self_package github.com/metacubex/quic-go -self_package github.com/metacubex/quic-go -destination mock_token_store_test.go github.com/metacubex/quic-go TokenStore"
    76  //go:generate sh -c "go run go.uber.org/mock/mockgen -typed -package quic -self_package github.com/metacubex/quic-go -self_package github.com/metacubex/quic-go -destination mock_packetconn_test.go net PacketConn"