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

Aberto
aberto por yannweb 5 anos atrás · 0 comentários

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 adicionou esta issue para o marco BETA version 5 anos atrás
yannweb adicionou a etiqueta
question
5 anos atrás
yannweb adicionou a etiqueta
Tests
5 anos atrás
yannweb modificou o marco de BETA version para Test coverage 5 anos atrás
yannweb adicionou a etiqueta
_libpyfcgi
5 anos atrás
Acesse para participar desta conversação.
Sem marco
Sem responsável
1 participante(s)
Data limite

Data limite não informada.

Dependências

Esta issue atualmente não tem dependências.

Carregando…
Cancelar
Salvar
Ainda não há conteúdo.