MCPcopy Create free account
hub / github.com/dank/rlapi / TestDecodeBuildID

Function TestDecodeBuildID

buildid_test.go:5–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3import "testing"
4
5func TestDecodeBuildID(t *testing.T) {
6 tests := []struct {
7 input string
8 want int32
9 }{
10 {"260316.80791.512269", 1210528741},
11 {"260420.86069.515605", 1273328361},
12 {"260506.26700.517210", -1652286008},
13 }
14 for _, tt := range tests {
15 got := decodeBuildID(tt.input)
16 if got != tt.want {
17 t.Errorf("decodeBuildID(%q) = %d, want %d", tt.input, got, tt.want)
18 }
19 }
20}

Callers

nothing calls this directly

Calls 1

decodeBuildIDFunction · 0.85

Tested by

no test coverage detected