coverage.sh: Extract function _build_case for re-use
coverage.sh: Extract function _build_case for re-use

libexpat/libexpat,libexpat/libexpat,libexpat/libexpat,libexpat/libexpat,libexpat/libexpat,libexpat/libexpat