github.com/tumi8/quic-go@v0.37.4-tum/noninternal/mocks/mockgen.go (about)

     1  package mocks
     2  
     3  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mockquic -destination quic/stream.go github.com/tumi8/quic-go Stream"
     4  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mockquic -destination quic/early_conn_tmp.go github.com/tumi8/quic-go EarlyConnection && sed 's/qtls.ConnectionState/quic.ConnectionState/g' quic/early_conn_tmp.go > quic/early_conn.go && rm quic/early_conn_tmp.go && go run golang.org/x/tools/cmd/goimports -w quic/early_conn.  go"
     5  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mocklogging -destination logging/tracer.go github.com/tumi8/quic-go/logging Tracer"
     6  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mocklogging -destination logging/connection_tracer.go github.com/tumi8/quic-go/logging ConnectionTracer"
     7  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mocks -destination short_header_sealer.go github.com/tumi8/quic-go/noninternal/handshake ShortHeaderSealer"
     8  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mocks -destination short_header_opener.go github.com/tumi8/quic-go/noninternal/handshake ShortHeaderOpener"
     9  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mocks -destination long_header_opener.go github.com/tumi8/quic-go/noninternal/handshake LongHeaderOpener"
    10  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mocks -destination crypto_setup_tmp.go github.com/tumi8/quic-go/noninternal/handshake CryptoSetup && sed -E 's~github.com/tumi8/qtls[[:alnum:]_-]*~github.com/tumi8/quic-go/noninternal/qtls~g; s~qtls.ConnectionStateWith0RTT~qtls.ConnectionState~g' crypto_setup_tmp.go >            crypto_setup.go && rm crypto_setup_tmp.go && go run golang.org/x/tools/cmd/goimports -w crypto_setup.go"
    11  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mocks -destination stream_flow_controller.go github.com/tumi8/quic-go/noninternal/flowcontrol StreamFlowController"
    12  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mocks -destination congestion.go github.com/tumi8/quic-go/noninternal/congestion SendAlgorithmWithDebugInfos"
    13  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mocks -destination connection_flow_controller.go github.com/tumi8/quic-go/noninternal/flowcontrol ConnectionFlowController"
    14  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mockackhandler -destination ackhandler/sent_packet_handler.go github.com/tumi8/quic-go/noninternal/ackhandler SentPacketHandler"
    15  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mockackhandler -destination ackhandler/received_packet_handler.go github.com/tumi8/quic-go/noninternal/ackhandler ReceivedPacketHandler"
    16  
    17  // The following command produces a warning message on OSX, however, it still generates the correct mock file.
    18  // See https://github.com/golang/mock/issues/339 for details.
    19  //go:generate sh -c "go run github.com/golang/mock/mockgen -package mocktls -destination tls/client_session_cache.go crypto/tls ClientSessionCache"