This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// Copyright 2026 The Gitea Authors. All rights reserved.
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package maven
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestChecksumSizeAllowed(t *testing.T) {
|
||||
assert.True(t, isChecksumSizeAllowed(maxChecksumSize))
|
||||
assert.False(t, isChecksumSizeAllowed(maxChecksumSize+1))
|
||||
}
|
||||
Reference in New Issue
Block a user