MCPcopy Create free account
hub / github.com/castai/openwebui-content-sync / TestGetFileHash

Function TestGetFileHash

internal/sync/manager_simple_test.go:179–188  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

177}
178
179func TestGetFileHash(t *testing.T) {
180 content := []byte("test content")
181 // Calculate the actual expected hash
182 expectedHash := "6ae8a75555209fd6c44157c0aed8016e763ff435a19cf186f76863140143ff72"
183
184 hash := GetFileHash(content)
185 if hash != expectedHash {
186 t.Errorf("Expected hash %s, got %s", expectedHash, hash)
187 }
188}
189
190func TestManager_loadFileIndex(t *testing.T) {
191 tempDir := t.TempDir()

Callers

nothing calls this directly

Calls 1

GetFileHashFunction · 0.85

Tested by

no test coverage detected