MCPcopy Index your code
hub / github.com/devspace-sh/devspace / TestHashString

Function TestHashString

pkg/util/hash/hash_test.go:20–23  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18}
19
20func TestHashString(t *testing.T) {
21 hashed := String("string")
22 assert.Equal(t, "473287f8298dba7163a897908958f7c0eae733e25d2e027992ea2edc9bed2fa8", hashed, "Wrong hash returned")
23}
24
25func TestHashDirectory(t *testing.T) {
26 dir := t.TempDir()

Callers

nothing calls this directly

Calls 2

EqualMethod · 0.80
StringFunction · 0.70

Tested by

no test coverage detected