(t *testing.T)
| 209 | } |
| 210 | |
| 211 | func TestGet_archiveRooted(t *testing.T) { |
| 212 | ctx := context.Background() |
| 213 | |
| 214 | dst := testing_helper.TempDir(t) |
| 215 | u := testModule("archive-rooted/archive.tar.gz") |
| 216 | op, err := Get(ctx, dst, u) |
| 217 | if err != nil { |
| 218 | t.Fatalf("err: %s", err) |
| 219 | } |
| 220 | if diff := cmp.Diff(&GetResult{Dst: dst}, op); diff != "" { |
| 221 | t.Fatalf("unexpected op: %s", diff) |
| 222 | } |
| 223 | |
| 224 | mainPath := filepath.Join(dst, "root", "hello.txt") |
| 225 | if _, err := os.Stat(mainPath); err != nil { |
| 226 | t.Fatalf("err: %s", err) |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | func TestGet_archiveSubdirWild(t *testing.T) { |
| 231 | ctx := context.Background() |
nothing calls this directly
no test coverage detected