(t *testing.T)
| 244 | } |
| 245 | |
| 246 | func TestFindAssets_NoChecksum(t *testing.T) { |
| 247 | assets := []Asset{ |
| 248 | {Name: "chief-linux-amd64", BrowserDownloadURL: "http://example.com/chief-linux-amd64"}, |
| 249 | } |
| 250 | |
| 251 | binary, checksum := findAssets(assets, "linux", "amd64") |
| 252 | if binary == nil { |
| 253 | t.Fatal("expected to find binary") |
| 254 | } |
| 255 | if checksum != nil { |
| 256 | t.Error("expected no checksum") |
| 257 | } |
| 258 | } |
| 259 | |
| 260 | func TestCheckWritePermission_Success(t *testing.T) { |
| 261 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected