MCPcopy Create free account
hub / github.com/archlinux/alpm / input_dir_to_path_buf

Function input_dir_to_path_buf

alpm-package/src/input.rs:733–741  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

731 ));
732
733 Ok(())
734 }
735
736 /// Ensures that [`InputDir::to_path_buf`] works.
737 #[test]
738 fn input_dir_to_path_buf() -> TestResult {
739 let temp_dir = tempdir()?;
740 let dir = temp_dir.path();
741 let input_dir = InputDir::new(dir.to_path_buf())?;
742
743 assert_eq!(input_dir.to_path_buf(), dir.to_path_buf());
744

Callers

nothing calls this directly

Calls 2

pathMethod · 0.45
to_path_bufMethod · 0.45

Tested by

no test coverage detected