Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run more tests using the streaming implementation #549

Merged
merged 12 commits into from
Sep 11, 2021
Merged

Conversation

witriew
Copy link
Contributor

@witriew witriew commented Sep 10, 2021

In the places where a FromWire(...) is invoked, call the corresponding streaming
Decode(...) to check the populated Thrift object.

  • collision_test
    • TestStruct
    • TestWithDefault
  • container_test
    • TestCollectionsOfPrimitives
    • TestEnumContainers
    • TestListOfStructs
    • TestCrazyTown
    • TestContainerValidate
    • TestEmptyContainersRoundTrip
  • service_test
    • TestServiceArgsAndResult
    • TestServiceTypesEnveloper
    • TestArgsAndResultValidation
  • struct_test
    • TestStructRoundTripAndString
    • TestPrimitiveRequiredMissingFields
    • TestBasicException
    • TestCollisionException
    • TestStructFromWireUnrecognizedField
    • TestUnionFromWireInconsistencies
    • TestStructWithDefaults
    • TestStructValidation
    • TestEmptyPrimitivesRoundTrip
  • typedef_test
    • TestTypedefI64
    • TestTypedefString
    • TestTypedefBinary
    • TestTypedefStruct
    • TestTypedefContainer
    • TestUnhashableSetAlias
    • TestUnhashableMapKeyAlias
    • TestBinarySet
    • TestTypedefAnnotatedSetToSlice
  • list_test
    • TestListRequiredToWire
    • TestListRequiredFromWire
    • TestRoundtripOptionalListFields
    • TestListOptionalFromWire
  • enum_test
    • TestEnumDefaultWire
    • TestEnumWithDuplicateValuesWire
    • TestUnknownEnumValue
    • TestOptionalEnum

In the places where a `FromWire()` is invoked, call the corresponding streaming
`Decode(...)` to check the populated Thrift object.
@codecov
Copy link

codecov bot commented Sep 10, 2021

Codecov Report

Merging #549 (3ff1439) into dev (c06ddf6) will increase coverage by 0.62%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #549      +/-   ##
==========================================
+ Coverage   67.32%   67.94%   +0.62%     
==========================================
  Files         135      135              
  Lines       23531    23531              
==========================================
+ Hits        15842    15989     +147     
+ Misses       4593     4509      -84     
+ Partials     3096     3033      -63     
Impacted Files Coverage Δ
gen/internal/tests/containers/containers.go 56.88% <0.00%> (+0.28%) ⬆️
gen/internal/tests/typedefs/typedefs.go 68.11% <0.00%> (+0.62%) ⬆️
gen/internal/tests/services/services.go 61.30% <0.00%> (+0.81%) ⬆️
gen/internal/tests/structs/structs.go 63.74% <0.00%> (+2.31%) ⬆️
gen/internal/tests/unions/unions.go 67.90% <0.00%> (+3.71%) ⬆️

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 c06ddf6...3ff1439. Read the comment docs.

@abhinav abhinav merged commit f753432 into dev Sep 11, 2021
@abhinav abhinav deleted the witriew/more_tests_1 branch September 11, 2021 00:25
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.

2 participants