Skip to content

Conversation

@DanielYEHsieh
Copy link
Contributor

Shadow LTS library

Description of changes:

Added Shadow library
  • include/shadow.h
  • src/shadow.h
utest code
  • utest/shadow_utest.c

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

DanielYEHsieh and others added 3 commits July 30, 2020 15:35
- refine implementation for Shadow_MatchTopic
- added logs for shadow library
- added more negative test cases
- added comments to by pass MISRA 5_2, 5_4
DanielYEHsieh added 2 commits August 5, 2020 23:06
- rename SHADOW_TOPIC_STRING_TYPE_GET to ShadowTopicStringTypeGet and other enums
- fix test case test_Shadow_MacrosString, test_Shadow_MacrosLength miss matched expected/observed for TEST_ASSERT_EQUAL
- added logs for BAD parameters
- fixed typo
- rename return code SHADOW_STATUS_XXX to SHADOW_XXX
- split test cases for invalid parameters into Happy_Path/Invalid_Parameters
@codecov-commenter
Copy link

codecov-commenter commented Aug 5, 2020

Codecov Report

Merging #1081 into development will increase coverage by 1.77%.
The diff coverage is 92.42%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #1081      +/-   ##
===============================================
+ Coverage        96.54%   98.31%   +1.77%     
===============================================
  Files                9        4       -5     
  Lines             5643     1189    -4454     
  Branches           641      369     -272     
===============================================
- Hits              5448     1169    -4279     
+ Misses               9        0       -9     
+ Partials           186       20     -166     
Impacted Files Coverage Δ
libraries/standard/mqtt/src/mqtt_lightweight.c 96.92% <ø> (+2.40%) ⬆️
libraries/standard/mqtt/src/mqtt_state.c 98.42% <ø> (+2.48%) ⬆️
libraries/standard/http/src/http_client.c 98.53% <80.00%> (+11.05%) ⬆️
libraries/standard/mqtt/src/mqtt.c 99.39% <100.00%> (+4.98%) ⬆️

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 b5f1ed6...502cf6b. Read the comment docs.

- fixed 5.4 by shorten the macro names, and used abbreviation for operation, the comments will explain the macro is related to which operation
- simplfiy parameters internal function extractThingName
- added getShadowOperationString, getShadowOperationLength to avoid indexing into the array with the value of the enum
- fixed typo in shadow_utest.c
- fixed grammer issue
- remove unused header file
@DanielYEHsieh DanielYEHsieh merged commit 4a292f5 into aws:development Aug 7, 2020
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 27, 2020
* Shadow LTS initial commit:
- added shadow library src folder
- added utest for shadow to test shadow library APIs and MACROS

Co-authored-by: DanielYEHsieh <wnf007z@example.com>
Co-authored-by: Hsieh <dhs@amazon.com>
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 28, 2020
* Shadow LTS initial commit:
- added shadow library src folder
- added utest for shadow to test shadow library APIs and MACROS

Co-authored-by: DanielYEHsieh <wnf007z@example.com>
Co-authored-by: Hsieh <dhs@amazon.com>
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Aug 31, 2020
* Shadow LTS initial commit:
- added shadow library src folder
- added utest for shadow to test shadow library APIs and MACROS

Co-authored-by: DanielYEHsieh <wnf007z@example.com>
Co-authored-by: Hsieh <dhs@amazon.com>
leegeth pushed a commit to leegeth/aws-iot-device-sdk-embedded-C that referenced this pull request Sep 1, 2020
* Shadow LTS initial commit:
- added shadow library src folder
- added utest for shadow to test shadow library APIs and MACROS

Co-authored-by: DanielYEHsieh <wnf007z@example.com>
Co-authored-by: Hsieh <dhs@amazon.com>
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.

6 participants