(t *testing.T)
| 1070 | } |
| 1071 | |
| 1072 | func TestWorkspaceDuplicateDirPathSuccess(t *testing.T) { |
| 1073 | t.Parallel() |
| 1074 | workspaceDir := filepath.Join("testdata", "workspace", "success", "duplicate_dir_path") |
| 1075 | requireBuildOutputFilePaths( |
| 1076 | t, |
| 1077 | map[string]expectedFileInfo{ |
| 1078 | "prefix/bar/v1/bar.proto": {}, |
| 1079 | "prefix/foo/v1/foo.proto": {moduleFullName: "buf.build/shared/zero"}, |
| 1080 | "prefix/x/x.proto": {moduleFullName: "buf.build/shared/one"}, |
| 1081 | "prefix/y/y.proto": {}, |
| 1082 | "v1/separate.proto": {}, |
| 1083 | }, |
| 1084 | workspaceDir, |
| 1085 | ) |
| 1086 | requireBuildOutputFilePaths( |
| 1087 | t, |
| 1088 | map[string]expectedFileInfo{ |
| 1089 | "prefix/bar/v1/bar.proto": {}, |
| 1090 | "prefix/foo/v1/foo.proto": {moduleFullName: "buf.build/shared/zero"}, |
| 1091 | }, |
| 1092 | filepath.Join(workspaceDir, "proto", "shared"), |
| 1093 | ) |
| 1094 | requireBuildOutputFilePaths( |
| 1095 | t, |
| 1096 | map[string]expectedFileInfo{ |
| 1097 | "prefix/x/x.proto": {moduleFullName: "buf.build/shared/one"}, |
| 1098 | "prefix/y/y.proto": {}, |
| 1099 | }, |
| 1100 | filepath.Join(workspaceDir, "proto", "shared1"), |
| 1101 | ) |
| 1102 | requireBuildOutputFilePaths( |
| 1103 | t, |
| 1104 | map[string]expectedFileInfo{ |
| 1105 | "prefix/x/x.proto": {moduleFullName: "buf.build/shared/one"}, |
| 1106 | "prefix/y/y.proto": {}, |
| 1107 | "prefix/bar/v1/bar.proto": {}, |
| 1108 | "prefix/foo/v1/foo.proto": {moduleFullName: "buf.build/shared/zero"}, |
| 1109 | }, |
| 1110 | filepath.Join(workspaceDir, "proto"), |
| 1111 | ) |
| 1112 | } |
| 1113 | |
| 1114 | func TestWorkspaceDuplicateDirPathOverlappingIncludeSuccess(t *testing.T) { |
| 1115 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…