mstmdev's recent timeline updates
mstmdev's repos on GitHub
Go · 530 watchers
gofs
A cross-platform real-time file synchronization tool out of the box based on Golang
Vue · 15 watchers
gofs-webui
A web UI tool of the gofs
Go · 15 watchers
nscache
A Go caching framework that supports multiple data source drivers
Shell · 6 watchers
go-qwerty-learner
The go-qwerty-learner is a project that distributes qwerty-learner through a standalone binary file
Go · 4 watchers
log
A simple logging framework out of the box
Go · 2 watchers
nsgo
A common toolkit of Golang.
Go · 0 watchers
comb
Go · 0 watchers
fsctl
The fsctl is a configuration-based file operation and validation tool
Go · 0 watchers
fserver
Go · 0 watchers
gin-session-redis
Gin middleware for session management
Go · 0 watchers
golongman
Go · 0 watchers
hosts
Dockerfile · 0 watchers
mirror
docker image mirror
Go · 0 watchers
ngo
Go · 0 watchers
nssession
A Go session framework that supports multiple data source drivers
Go · 0 watchers
pwd
Go · 0 watchers
redistore
A session store backend for gorilla/sessions using Redis.
Go · 0 watchers
replacer
Go · 0 watchers
replacerbot
Go · 0 watchers
rest-client
A http command line tool
Go · 0 watchers
toolkit
A tool for quickly opening specific utility websites
Go · 0 watchers
tran
A simple tcp transport server and client component
Go · 0 watchers
usword
Go · 0 watchers
workchain
mstmdev

mstmdev

V2EX member #579339, joined on 2022-04-26 01:22:50 +08:00
mstmdev's recent replies
别难过,给你加个😄
头条推送的质量越来越差,有点过度耗费时间,更不用说抖音之类的,已经卸载半年了,本来是想等哪天闲的蛋疼的时候再装回来,不过好像不用也挺好。
Mar 25, 2023
Replied to a topic by debugger0 程序员 个人开发者写单元测试的人多吗?
对于个人开发的项目还是会尽量去写一些单元测试,确保每一次提交没有打破原先的约定或者重复踩到相同的 bug 。而且个人开发者精力有限,每个修改没法回归测试整个流程,单元测试也是一定的质量保障。

想要追求 100%的覆盖率比较难,而且所谓的 100%覆盖率其实并不会覆盖所有的场景,100%覆盖率只是覆盖了所有的条件分支,但是并没法覆盖所有的分支的组合场景,最好再辅助一些常见场景的集成测试。

另外想要达到 100%的覆盖率必定要写一些 mock ,我的个人项目中曾经为了追求 100%的测试覆盖率,写了一堆 mock 的测试,一开始还好,随着代码量的增加,首先导致了测试代码难以阅读,其次很多 mock 的单元测试回过头来看几乎没有太大意义,脱离了实际的场景,并且很多涉及 mock 的测试几乎无法让其失败,仅仅成了一个形式,最终我删除了这些过度 mock 的单元测试,仅仅保持一定比例的覆盖率,不一定追求 100%,但是尽量保持代码的可维护性和可阅读性
Jan 29, 2023
Replied to a topic by penll 程序员 yandex 代码泄露,你们怎么看?
貌似以 python 与 C++为主?
May 29, 2022
Replied to a topic by danbai 分享创造 rustdesk 服务端 golang 实现
现在是完全开源了么,所有功能都开放了?
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1120 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 18ms · UTC 23:36 · PVG 07:36 · LAX 16:36 · JFK 19:36
♥ Do have faith in what you're doing.