Skip to content

Commit ad84286

Browse files
committed
tests: rename
1 parent dcb6b71 commit ad84286

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

internal/cache/cache_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func fakePackage() *packages.Package {
4444
}
4545
}
4646

47-
func Test_buildKey(t *testing.T) {
47+
func TestCache_buildKey(t *testing.T) {
4848
pkgCache := setupCache(t)
4949

5050
pkg := fakePackage()
@@ -55,7 +55,7 @@ func Test_buildKey(t *testing.T) {
5555
assert.Equal(t, "f32bf1bf010aa9b570e081c64ec9e22e17aafa1e822990ba952905ec5fdf8d9d", fmt.Sprintf("%x", actionID))
5656
}
5757

58-
func Test_pkgActionID(t *testing.T) {
58+
func TestCache_pkgActionID(t *testing.T) {
5959
pkgCache := setupCache(t)
6060

6161
pkg := fakePackage()
@@ -66,7 +66,7 @@ func Test_pkgActionID(t *testing.T) {
6666
assert.Equal(t, "f690f05acd1024386ae912d9ad9c04080523b9a899f6afe56ab3108d88215c1d", fmt.Sprintf("%x", actionID))
6767
}
6868

69-
func Test_packageHash_load(t *testing.T) {
69+
func TestCache_packageHash_load(t *testing.T) {
7070
pkgCache := setupCache(t)
7171

7272
pkg := fakePackage()
@@ -79,7 +79,7 @@ func Test_packageHash_load(t *testing.T) {
7979
assert.Equal(t, "fake", hash)
8080
}
8181

82-
func Test_packageHash_store(t *testing.T) {
82+
func TestCache_packageHash_store(t *testing.T) {
8383
pkgCache := setupCache(t)
8484

8585
pkg := fakePackage()
@@ -101,7 +101,7 @@ func Test_packageHash_store(t *testing.T) {
101101
assert.Equal(t, "9c602ef861197b6807e82c99caa7c4042eb03c1a92886303fb02893744355131", hashRes[HashModeNeedAllDeps])
102102
}
103103

104-
func Test_computeHash(t *testing.T) {
104+
func TestCache_computeHash(t *testing.T) {
105105
pkgCache := setupCache(t)
106106

107107
pkg := fakePackage()

0 commit comments

Comments
 (0)