Skip to content

Conversation

yourslab
Copy link
Contributor

@yourslab yourslab commented Aug 12, 2020

This adds unit tests for HTTPClient_Send and HTTPClient_ReadHeader

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-commenter
Copy link

codecov-commenter commented Aug 12, 2020

Codecov Report

Merging #1116 into development will increase coverage by 2.31%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #1116      +/-   ##
===============================================
+ Coverage        96.54%   98.85%   +2.31%     
===============================================
  Files                9        4       -5     
  Lines             5643     1312    -4331     
  Branches           641      391     -250     
===============================================
- Hits              5448     1297    -4151     
+ Misses               9        0       -9     
+ Partials           186       15     -171     
Impacted Files Coverage Δ
libraries/standard/mqtt/src/mqtt.c 99.48% <ø> (+5.06%) ⬆️
libraries/standard/mqtt/src/mqtt_lightweight.c 97.44% <ø> (+2.92%) ⬆️
libraries/standard/mqtt/src/mqtt_state.c 98.46% <ø> (+2.52%) ⬆️
libraries/standard/http/src/http_client.c 100.00% <100.00%> (+12.51%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57d775b...7b4f8b3. Read the comment docs.

TEST_ASSERT_EQUAL( HTTP_INSUFFICIENT_MEMORY, retCode );

/* Length of headers > length of buffer.*/
tearDown();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explicit call to teardown is probably an indication that these should be separate tests. Though this PR is not introducing it, so approving it.

@yourslab yourslab merged commit 988edba into aws:development Aug 13, 2020
yourslab added a commit to yourslab/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 17, 2020
…ws#1116)

* Remove extra wrapping parenthesis

* Add remaining coverage for HTTPClient_Send and its private methods

* Add remaining coverage for HTTPClient_AddRangeHeader
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 27, 2020
…ws#1116)

* Remove extra wrapping parenthesis

* Add remaining coverage for HTTPClient_Send and its private methods

* Add remaining coverage for HTTPClient_AddRangeHeader
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 28, 2020
…ws#1116)

* Remove extra wrapping parenthesis

* Add remaining coverage for HTTPClient_Send and its private methods

* Add remaining coverage for HTTPClient_AddRangeHeader
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 31, 2020
…ws#1116)

* Remove extra wrapping parenthesis

* Add remaining coverage for HTTPClient_Send and its private methods

* Add remaining coverage for HTTPClient_AddRangeHeader
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Sep 1, 2020
…ws#1116)

* Remove extra wrapping parenthesis

* Add remaining coverage for HTTPClient_Send and its private methods

* Add remaining coverage for HTTPClient_AddRangeHeader
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants