##// END OF EJS Templates
copies-rust: add a macro-based unit-testing framework...
copies-rust: add a macro-based unit-testing framework `compare_values`, `merge_copies_dict`, and `CombineChangesetCopies` are APIs whose signatures involve non-trivial types. Calling them directly in unit tests would involve a lot of verbose setup code that obscures the meaningful parts of a given test case. This adds a macro-based test-harness with pseudo-syntax to tersely create arguments and expected return values in the correct types. For now there is only one (not particularly meaningful) test case per tested function, just to exercize the macros. Differential Revision: https://phab.mercurial-scm.org/D10071

File last commit:

r45179:1f5ab1a9 default
r47405:b92083ad default
Show More
build.rs
7 lines | 155 B | application/rls-services+xml | RustLexer
Yuya Nishihara
rust-chg: add function to send fds via domain socket...
r40005 fn main() {
cc::Build::new()
.warnings(true)
.file("src/sendfds.c")
Yuya Nishihara
rust-chg: extract signal handlers from chg/procutil.c...
r40154 .file("src/sighandlers.c")
Yuya Nishihara
rust-chg: add function to send fds via domain socket...
r40005 .compile("procutil");
}