The Apache2 API is unusual because it is not provided as a library that modules can link against. Instead the Apache2 binary seems to dlopen on the module shared library and then perform linkage to the Apache2 API within it. This means it is impossible to create a module that can be tested outside of the Apache2 framework.
Current method of dealing with this is to do conditional compilation where empty functions are defined for test cfg.
A better alternative would be to create a mock version of the Apache API for test cg and remove the conditional compilation of mod_tile_rs code.
The Apache2 API is unusual because it is not provided as a library that modules can link against. Instead the Apache2 binary seems to dlopen on the module shared library and then perform linkage to the Apache2 API within it. This means it is impossible to create a module that can be tested outside of the Apache2 framework.
Current method of dealing with this is to do conditional compilation where empty functions are defined for test cfg.
A better alternative would be to create a mock version of the Apache API for test cg and remove the conditional compilation of mod_tile_rs code.