Giter VIP home page Giter VIP logo

Comments (4)

The-EDev avatar The-EDev commented on May 31, 2024

Update: Websockets suffer the same problem as request streaming, It sends data directly over the TCP socket (or SSL stream), which as far as I know isn't very testable, so aside from the setup code, there isn't much to test without some sort of fake read/write methods or some debug tools in ASIO (which I don't believe there are)

Edit: a simple client to test the received data might be useful, though I do not believe code coverage and unit tests are important enough to warrant dropping the main issues to write a client, maybe when the code is in a stable state, or if someone kindly opens a PR with such a client implemented

from crow.

The-EDev avatar The-EDev commented on May 31, 2024

Ok so after some research, data coming through a socket by creating our own socket and connecting it to an ioservice, similar to how it's done in tests like simple_url_params, IDK why I was too blind to see these tests, regardless. I'll be changing the tests for sendfile and request streaming to test using a socket, this should solve the issues above + a new issue i discovered where the tests don't even send the response (hence the lack of coverage for streaming)

from crow.

The-EDev avatar The-EDev commented on May 31, 2024

It might be the case that Mustache Tests are not being considered in coverage. This could be due to the fact that the file being run is a python script that generates temporary files and runs the actual C++ test. Although I'm not 100% sure of it. only 85%

Update: I confirmed GCOV files are only being created for unittest

Update2: Adding a simple line to include mustachetest in coverage increased mustache.h coverage from 33.45% to 91.96% and finally got us out of the damn red zone

from crow.

The-EDev avatar The-EDev commented on May 31, 2024

SSL tests have been merged into revamped_setup

from crow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.