Implement mocking and update tests for createElection

This commit is contained in:
2025-01-08 17:18:53 +01:00
parent 49a1df06d2
commit bf3368b736
4 changed files with 46 additions and 2 deletions

1
go.mod
View File

@ -29,6 +29,7 @@ require (
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect
go.uber.org/atomic v1.7.0 // indirect