精简后的项目:仅保留 api/ui 源码、文档、构建依赖

This commit is contained in:
gallery
2026-09-11 16:11:09 +08:00
commit 490e85634e
457 changed files with 86862 additions and 0 deletions
@@ -0,0 +1,22 @@
package graphql_endpoint_test
import (
"testing"
graphql_endpoint "github.com/photoview/photoview/api/graphql/endpoint"
"github.com/photoview/photoview/api/test_utils"
"github.com/stretchr/testify/assert"
)
func TestMain(m *testing.M) {
test_utils.UnitTestRun(m)
}
func TestGraphqlEndpoint(t *testing.T) {
db := test_utils.DatabaseTest(t)
t.Run("creates server successfully", func(t *testing.T) {
server := graphql_endpoint.GraphqlEndpoint(db)
assert.NotNil(t, server)
})
}