完善版本发布流程并处理会话失效场景
This commit is contained in:
1 parent
36798dcced
commit
1833020caf
52 files changed
+1129
-265
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package version
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestShortCommit(t *testing.T) {
|
||||
original := Commit
|
||||
t.Cleanup(func() { Commit = original })
|
||||
|
||||
Commit = "0123456789abcdef"
|
||||
if got := ShortCommit(); got != "0123456789ab" {
|
||||
t.Fatalf("ShortCommit() = %q", got)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user