(t *testing.T)
| 3 | import "testing" |
| 4 | |
| 5 | func 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 | } |
nothing calls this directly
no test coverage detected