Skip to content

Commit 2434473

Browse files
committed
Add Phase 3 branch coverage tests for render methods and error handling
- Add tests for all HTTP methods falling through to base render() - Add custom internal error resource handler test - Add get_arg_flat fallback test - Add large multipart form field test (100KB) - Add file upload with explicit content-type header test - Add http_endpoint tests for regex validation and error paths - Add tests for invalid URL parameter formats
1 parent 5e230a1 commit 2434473

File tree

10 files changed

+1859
-1
lines changed

10 files changed

+1859
-1
lines changed

test/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ LDADD += -lcurl
2626

2727
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/httpserver/
2828
METASOURCES = AUTO
29-
check_PROGRAMS = basic file_upload http_utils threaded nodelay string_utilities http_endpoint ban_system ws_start_stop authentication deferred http_resource http_response
29+
check_PROGRAMS = basic file_upload http_utils threaded nodelay string_utilities http_endpoint ban_system ws_start_stop authentication deferred http_resource http_response create_webserver
3030

3131
MOSTLYCLEANFILES = *.gcda *.gcno *.gcov
3232

@@ -43,6 +43,7 @@ http_endpoint_SOURCES = unit/http_endpoint_test.cpp
4343
nodelay_SOURCES = integ/nodelay.cpp
4444
http_resource_SOURCES = unit/http_resource_test.cpp
4545
http_response_SOURCES = unit/http_response_test.cpp
46+
create_webserver_SOURCES = unit/create_webserver_test.cpp
4647

4748
noinst_HEADERS = littletest.hpp
4849
AM_CXXFLAGS += -Wall -fPIC -Wno-overloaded-virtual

0 commit comments

Comments
 (0)