aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git/utils_test.go
blob: 1291cee637b6039001ac8da32502289dc4bf98c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2024 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package git

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestHashFilePathForWebUI(t *testing.T) {
	assert.Equal(t,
		"8843d7f92416211de9ebb963ff4ce28125932878",
		HashFilePathForWebUI("foobar"),
	)
}