(t *testing.T)
| 24 | ) |
| 25 | |
| 26 | func TestPaths(t *testing.T) { |
| 27 | br := blob.MustParse("digalg-abc") |
| 28 | ds := &Storage{root: "/tmp/dir"} |
| 29 | |
| 30 | slash := filepath.ToSlash |
| 31 | if e, g := "/tmp/dir/digalg/ab/c_", slash(ds.blobDirectory(br)); e != g { |
| 32 | t.Errorf("short blobref dir; expected path %q; got %q", e, g) |
| 33 | } |
| 34 | if e, g := "/tmp/dir/digalg/ab/c_/digalg-abc.dat", slash(ds.blobPath(br)); e != g { |
| 35 | t.Errorf("short blobref path; expected path %q; got %q", e, g) |
| 36 | } |
| 37 | } |
nothing calls this directly
no test coverage detected