(host compiler.CompilerHost, config *tsoptions.ParsedCommandLine)
| 937 | } |
| 938 | |
| 939 | func createProgram(host compiler.CompilerHost, config *tsoptions.ParsedCommandLine) compiler.ProgramLike { |
| 940 | var singleThreaded core.Tristate |
| 941 | if testutil.TestProgramIsSingleThreaded() { |
| 942 | singleThreaded = core.TSTrue |
| 943 | } |
| 944 | |
| 945 | programOptions := compiler.ProgramOptions{ |
| 946 | Config: config, |
| 947 | Host: host, |
| 948 | SingleThreaded: singleThreaded, |
| 949 | } |
| 950 | program := compiler.NewProgram(programOptions) |
| 951 | if config.CompilerOptions().Incremental.IsTrue() { |
| 952 | oldProgram := incremental.ReadBuildInfoProgram(config, getTestBuildInfoReader(host), host) |
| 953 | incrementalProgram := incremental.NewProgram(program, oldProgram, incremental.CreateHost(host), false) |
| 954 | return incrementalProgram |
| 955 | } |
| 956 | return program |
| 957 | } |
| 958 | |
| 959 | func EnumerateFiles(folder string, testRegex *regexp.Regexp, recursive bool) ([]string, error) { |
| 960 | files, err := listFiles(folder, testRegex, recursive) |
no test coverage detected