mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-07-04 19:57:12 +08:00
Reviewed-on: https://gitea.com/gitea/runner/pulls/1055 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: bircni <bircni@icloud.com>
14 lines
326 B
Go
14 lines
326 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package ver
|
|
|
|
import "testing"
|
|
|
|
func TestVersion(t *testing.T) {
|
|
// version defaults to "dev" and is overridden at build time via -ldflags
|
|
if got := Version(); got != version {
|
|
t.Errorf("Version() = %q, want %q", got, version)
|
|
}
|
|
}
|