Loading...
Searching...
No Matches
Go to the documentation of this file.
9#ifndef SQUID_SRC_TESTS_STUB_H
10#define SQUID_SRC_TESTS_STUB_H
31#define stub_fatal(m) { std::cerr<<"FATAL: "<<(m)<<" for use of "<<__func__<<"\n"; exit(EXIT_FAILURE); }
34#define STUB { stub_fatal(STUB_API " required"); }
38#define STUB_NOP { std::cerr<<"SKIP: "<<STUB_API<<" "<<__func__<<" (not implemented).\n"; }
42#define STUB_RETVAL(x) { stub_fatal(STUB_API " required"); return x; }
46#define STUB_RETVAL_NOP(x) { std::cerr<<"SKIP: "<<STUB_API<<" "<<__func__<<" (not implemented).\n"; return x; }
52#define STUB_RETREF(x) { stub_fatal(STUB_API " required"); return *(x *)nullptr; }
55#define STUB_RETSTATREF(x) STUB_RETREF(x)