cuelang.org/go@v0.10.1/internal/mod/modimports/testdata/parseerror.txtar (about) 1 -- want -- 2 bad_after_import.cue "dep3" 3 bad_after_package.cue 4 bad_after_package_import.cue "dep4" 5 bad_imports.cue: error: string literal not terminated 6 bad_lone.cue 7 bad_package_imports.cue: error: string literal not terminated 8 -- want-imports -- 9 error: cannot read "bad_imports.cue": string literal not terminated 10 -- bad_imports.cue -- 11 // Invalid import syntax without a package clause. 12 13 import "dep1 14 15 -- bad_package_imports.cue -- 16 // Invalid import syntax with a package clause; should fail. 17 18 package p 19 20 import "dep2 21 22 -- bad_lone.cue -- 23 // Invalid syntax without a package clause, assumed to be after imports. 24 25 (unterminated 26 27 -- bad_after_package.cue -- 28 // Invalid syntax with a package clause, assumed to be after imports. 29 30 package p 31 32 (unterminated 33 34 -- bad_after_import.cue -- 35 // Invalid syntax after some imports without a package clause. 36 37 import "dep3" 38 39 (unterminated 40 41 -- bad_after_package_import.cue -- 42 // Invalid syntax after some imports with a package clause. 43 44 package p 45 46 import "dep4" 47 48 (unterminated