MCPcopy
hub / github.com/go-task/task / TestIncludes

Function TestIncludes

task_test.go:1033–1054  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1031}
1032
1033func TestIncludes(t *testing.T) {
1034 t.Parallel()
1035
1036 tt := fileContentTest{
1037 Dir: "testdata/includes",
1038 Target: "default",
1039 TrimSpace: true,
1040 Files: map[string]string{
1041 "main.txt": "main",
1042 "included_directory.txt": "included_directory",
1043 "included_directory_without_dir.txt": "included_directory_without_dir",
1044 "included_taskfile_without_dir.txt": "included_taskfile_without_dir",
1045 "./module2/included_directory_with_dir.txt": "included_directory_with_dir",
1046 "./module2/included_taskfile_with_dir.txt": "included_taskfile_with_dir",
1047 "os_include.txt": "os",
1048 },
1049 }
1050 t.Run("", func(t *testing.T) {
1051 t.Parallel()
1052 tt.Run(t)
1053 })
1054}
1055
1056func TestIncludesMultiLevel(t *testing.T) {
1057 t.Parallel()

Callers

nothing calls this directly

Calls 1

RunMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…