Skip to content

Commit 1d2cb2e

Browse files
Merge pull request #6672 from simone-stacks/chore/remove-make-lcov-command
chore: remove make_lcov from clarity-cli
2 parents 17a221c + 394ec13 commit 1d2cb2e

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

stackslib/src/clarity_cli.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
// You should have received a copy of the GNU General Public License
1515
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

17-
use std::ffi::OsStr;
1817
use std::io::{Read, Write};
1918
use std::path::PathBuf;
2019
use std::{fs, io};
@@ -1960,29 +1959,6 @@ pub fn invoke_command(invoked_by: &str, args: &[String]) -> (i32, Option<serde_j
19601959
}
19611960
}
19621961
}
1963-
"make_lcov" => {
1964-
let mut register_files = vec![];
1965-
let mut coverage_files = vec![];
1966-
let coverage_folder = &args[1];
1967-
let lcov_output_file = &args[2];
1968-
for folder_entry in
1969-
fs::read_dir(coverage_folder).expect("Failed to read the coverage folder")
1970-
{
1971-
let folder_entry =
1972-
folder_entry.expect("Failed to read entry in the coverage folder");
1973-
let entry_path = folder_entry.path();
1974-
if entry_path.is_file() {
1975-
if entry_path.extension() == Some(OsStr::new("clarcovref")) {
1976-
register_files.push(entry_path)
1977-
} else if entry_path.extension() == Some(OsStr::new("clarcov")) {
1978-
coverage_files.push(entry_path)
1979-
}
1980-
}
1981-
}
1982-
CoverageReporter::produce_lcov(lcov_output_file, &register_files, &coverage_files)
1983-
.expect("Failed to produce an lcov output");
1984-
(0, None)
1985-
}
19861962
_ => {
19871963
print_usage(invoked_by);
19881964
(1, None)

0 commit comments

Comments
 (0)