Gomonkey Test

简述

项目中重视单元测试,选择使用简单的第三库来实现 mock,是至关重要的,有太多的方法、依赖、全局变量需要 Mock。

各领风骚

gomonkey

gomonkey is a library to make monkey patching in unit tests easy

gomonkey should work on any amd64 system

只取一瓢

  • Tsung is an open-source distributed load testing tool that makes it easy to stress test websockets (as well as many other protocols.), 比如对 Websocket 长连接的压测[3]

参考

[1] X86、X86_64 和 AMD64 的由来

时机落后的 Intel 开始支持 AMD64 的指令集, 但是换了名字,叫x84_64, 表示x86指令集的64扩展
x86_64, x64, AMD64 基本上是同一个东西

[2] [gomonkey 博主简书] (https://www.jianshu.com/u/1381dc29fed9) golang开发

[3] Gary Rennie: The Road to 2 Million Websocket Connections in Phoenix.

[4] eranyanay: Going Infinite, handling 1M websockets connections in Go

·End·
最后修改 October 20, 2021 : Update 2019-09-17-gomonkey-test.md (fd99f57)