1RUN: not llvm-cov show --instr-profile=/dev/null -coverage-watermark=foo /dev/null 2>&1 | FileCheck --check-prefix=INVALID-ARG %s 2INVALID-ARG: error: -coverage-watermark: invalid argument 'foo', must be in format 'high,low' 3 4RUN: not llvm-cov show --instr-profile=/dev/null -coverage-watermark=a,2 /dev/null 2>&1 | FileCheck --check-prefix=INVALID-HIGH %s 5INVALID-HIGH: error: -coverage-watermark: invalid number 'a', invalid value for 'high' 6 7RUN: not llvm-cov show --instr-profile=/dev/null -coverage-watermark=10,b /dev/null 2>&1 | FileCheck --check-prefix=INVALID-LOW %s 8INVALID-LOW: error: -coverage-watermark: invalid number 'b', invalid value for 'low' 9 10RUN: not llvm-cov show --instr-profile=/dev/null -coverage-watermark=10,20 /dev/null 2>&1 | FileCheck --check-prefix=INVALID-ARRANGE %s 11INVALID-ARRANGE: error: -coverage-watermark: invalid number range '10,20', must be both high and low should be between 0-100, and high > low 12 13RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -format html -show-region-summary -show-instantiation-summary -o %t.html.dir -path-equivalence=/tmp,%S %S/showTemplateInstantiations.cpp 14RUN: FileCheck -check-prefix=ORIGIN %s -input-file %t.html.dir/index.html 15 16ORIGIN: <td class='column-entry-green'> 17ORIGIN: 100.00% (3/3) 18ORIGIN: <td class='column-entry-red'> 19ORIGIN: 75.00% (9/12) 20ORIGIN: <td class='column-entry-red'> 21ORIGIN: 66.67% (4/6) 22 23RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -format html -show-region-summary -show-instantiation-summary -o %t.html.dir -path-equivalence=/tmp,%S -coverage-watermark 80,60 %S/showTemplateInstantiations.cpp 24RUN: FileCheck -check-prefix=DOWNGRADE1 %s -input-file %t.html.dir/index.html 25 26DOWNGRADE1: <td class='column-entry-green'> 27DOWNGRADE1: 100.00% (3/3) 28DOWNGRADE1: <td class='column-entry-yellow'> 29DOWNGRADE1: 75.00% (9/12) 30DOWNGRADE1: <td class='column-entry-red'> 31DOWNGRADE1: 66.67% (4/6) 32 33RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -format html -show-region-summary -show-instantiation-summary -o %t.html.dir -path-equivalence=/tmp,%S -coverage-watermark 70,50 %S/showTemplateInstantiations.cpp 34RUN: FileCheck -check-prefix=DOWNGRADE2 %s -input-file %t.html.dir/index.html 35 36DOWNGRADE2: <td class='column-entry-green'> 37DOWNGRADE2: 100.00% (3/3) 38DOWNGRADE2: <td class='column-entry-green'> 39DOWNGRADE2: 75.00% (9/12) 40DOWNGRADE2: <td class='column-entry-yellow'> 41DOWNGRADE2: 66.67% (4/6) 42