mirror of
https://github.com/go-gitea/gitea.git
synced 2026-02-25 01:36:30 +01:00
The jobparser sub package in act is only used by Gitea. Move it to Gitea to make it more easier to maintain. --------- Co-authored-by: Christopher Homberger <christopher.homberger@web.de>
22 lines
407 B
Go
22 lines
407 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package jobparser
|
|
|
|
import (
|
|
"embed"
|
|
"path/filepath"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
//go:embed testdata
|
|
var testdata embed.FS
|
|
|
|
func ReadTestdata(t *testing.T, name string) []byte {
|
|
content, err := testdata.ReadFile(filepath.Join("testdata", name))
|
|
require.NoError(t, err)
|
|
return content
|
|
}
|