From b41d4ac7932576bab95637a4948d795234f7d8b8 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Mon, 15 Jan 2018 21:18:57 +0000 Subject: [PATCH] baseproc-sys.h: Add explanatory comment. --- src/includes/baseproc-sys.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/includes/baseproc-sys.h b/src/includes/baseproc-sys.h index e410ebe..217c8ca 100644 --- a/src/includes/baseproc-sys.h +++ b/src/includes/baseproc-sys.h @@ -1,3 +1,10 @@ +/* + * This header implements a namespace, bp_sys, which wraps various system calls used by baseproc-service.cc. + * + * When running tests, another header is substituted in place of this one. The substitute provides mocks/stubs + * for the functions, to avoid calling the real functions and thus allow for unit-level testing. + */ + namespace bp_sys { using dasynq::pipe2; -- 2.25.1