code.gitea.io/gitea@v1.22.3/modules/git/utils_test.go (about)

     1  // Copyright 2024 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package git
     5  
     6  import (
     7  	"testing"
     8  
     9  	"github.com/stretchr/testify/assert"
    10  )
    11  
    12  func TestHashFilePathForWebUI(t *testing.T) {
    13  	assert.Equal(t,
    14  		"8843d7f92416211de9ebb963ff4ce28125932878",
    15  		HashFilePathForWebUI("foobar"),
    16  	)
    17  }