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