weed/s3api: prune test-only functions (#8840)
weed/s3api: prune functions that are referenced only from tests and the tests that exercise them.
This commit is contained in:
@@ -9,22 +9,6 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
// mockAccountManager implements AccountManager for testing
|
||||
type mockAccountManager struct {
|
||||
accounts map[string]string
|
||||
}
|
||||
|
||||
func (m *mockAccountManager) GetAccountNameById(id string) string {
|
||||
if name, exists := m.accounts[id]; exists {
|
||||
return name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *mockAccountManager) GetAccountIdByEmail(email string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func TestNewListEntryOwnerDisplayName(t *testing.T) {
|
||||
// Create S3ApiServer with a properly initialized IAM
|
||||
s3a := &S3ApiServer{
|
||||
|
||||
Reference in New Issue
Block a user