#8 Find a way to test FCGI stuff...

오픈
yannweb5 년 전을 오픈 · 0개의 코멘트
yannweb 코멘트됨, 5 년 전

Functions using libfcgi stuff are more complicated to test. For example :

The libpyfcgi.IoIn class allows worker to read HTTP data from an RawIo interface. This class is written in C and calls FCGX_* functions to read data from FCGX_Stream* returned by FCGX_Accept….

A way to test all this stuff is to create a valid FCGI context. Maybe with a dummy HTTP server sending FCGI requests to the test programm…. Or by re-defining/mocking all FCGX_* functions…. (the second solution seems the simplest/better one)

Functions using libfcgi stuff are more complicated to test. For example : The libpyfcgi.IoIn class allows worker to read HTTP data from an RawIo interface. This class is written in C and calls FCGX_* functions to read data from FCGX_Stream* returned by FCGX_Accept.... A way to test all this stuff is to create a valid FCGI context. Maybe with a dummy HTTP server sending FCGI requests to the test programm.... Or by re-defining/mocking all FCGX_* functions.... (the second solution seems the simplest/better one)
yannweb added this to the BETA version milestone 5 년 전
yannweb added the
question
label 5 년 전
yannweb added the
Tests
label 5 년 전
yannweb modified the milestone from BETA version to Test coverage 5 년 전
yannweb added the
_libpyfcgi
label 5 년 전
로그인하여 이 대화에 참여
마일스톤 없음
No Assignees
참여자 1명
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
취소
저장
아직 콘텐츠가 없습니다.