[tests] remove redundant univalue_tests.cpp #11879

pull jnewbery wants to merge 1 commits into bitcoin:master from jnewbery:remove_univalue_test changing 2 files +0 −334
  1. jnewbery commented at 6:01 PM on December 12, 2017: member

    univalue unit tests were added in #4730 , and exist at /src/test/univalue_tests.cpp (outside the univalue tree). That test was brought into the univalue repository in https://github.com/bitcoin-core/univalue/pull/4 , which was pulled into the github repository in #11420.

    That means that the univalue test exists in two places:

    1. /src/test/univalue_tests.cpp
    2. /src/univalue/test/object.cpp

    (2) is a strict superset of (1). It adds some macros to work around boost not being a univalue dependency, and adds a few extra lines of test.

    Therefore remove /src/test/univalue_tests.cpp

  2. [tests] remove redundant univalue_tests.cpp 2862b562cc
  3. practicalswift commented at 8:32 PM on December 12, 2017: contributor

    Oh, nice catch! -334 lines!

    utACK 2862b562cc17f9d4507dab3b9281bf066b093e16

  4. MarcoFalke added the label Tests on Dec 12, 2017
  5. MarcoFalke added the label Refactoring on Dec 12, 2017
  6. MarcoFalke commented at 10:49 PM on December 12, 2017: member

    Concept ACK. Going to review after a subtree pull

  7. laanwj commented at 7:30 AM on December 13, 2017: member

    Going to review after a subtree pull

    What needs to be pulled in first?

  8. MarcoFalke commented at 7:49 PM on December 13, 2017: member

    The tests would break by merging it right now. See https://github.com/bitcoin-core/univalue/pull/9

  9. jnewbery commented at 7:56 PM on December 13, 2017: member

    The tests would break...

    More accurately, the tests wouldn't be fully testing what we expect them to. They'd continue to pass.

    univalue doesn't change frequently, and as long as we don't pull in unrelated changes from univalue without pulling in https://github.com/bitcoin-core/univalue/pull/9, there's no risk or downside to merging this PR.

  10. MarcoFalke commented at 11:00 PM on December 13, 2017: member

    no risk or downside to merging this PR

    I disagree. There might be no risk, but there is a downside. One tool for testing changes is to break the software (or test) on purpose and see if the test (or software), i.e. the "counterpart", fails. Merging the pull request now would make it infeasible to use this approach for testing on univalue objects.

  11. laanwj added the label Upstream on Dec 19, 2017
  12. ryanofsky commented at 8:16 PM on December 19, 2017: member

    utACK 2862b562cc17f9d4507dab3b9281bf066b093e16. Confirmed test/univalue_tests.cpp is a subset of univalue/test/object.cpp, though it seems #11952 should be merged before this PR.

  13. laanwj merged this on Dec 20, 2017
  14. laanwj closed this on Dec 20, 2017

  15. laanwj referenced this in commit d4e404a3af on Dec 20, 2017
  16. jnewbery deleted the branch on Dec 20, 2017
  17. MarcoFalke commented at 9:39 PM on December 20, 2017: member

    Tested that the tests work on current master, now.

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512
    
    Tested ACK 2862b562cc17f9d4507dab3b9281bf066b093e16
    -----BEGIN PGP SIGNATURE-----
    
    iQIcBAEBCgAGBQJaOthVAAoJENLqSFDnUoslQRwP/0Vx+fszR58LBm5xAeQwITHI
    ZSxnSAuO3n069DLSeBKKHxDLwkBLyAtlgbJew5L3pG/XD7bCOWBz46mJmZFIC+yf
    g/UswPICh5tU/hl+UBcAQWMtxHWAWOpyl+MRJuNAfi3bWLzzJukT4zgSq39WeGEi
    rV23M+zNhTvLAMlkvstQeL18zVetxNgQl+q1WnV5odykIZuXaoeJOppWTu4ev8Os
    C+T2xpNFtRazi1Zao5ouR2siqFydCoMUhFJT6A6kM4tPWZg9QdQKzMtC4LDJkVBC
    VUZKlSAmaZUGoucHJbFoe+dqRu1Jctc2uBlKwC9VmDWj71JqSu8PoQ0U70Kk81iV
    Vu7CgxVBLdErAzSeG+VGBHHF7jiM/yVBIQrkmU5pu0KDOxUi1XQaAu9Qv2852Q81
    1Zcyw36RCzfKe6gSvCO3NU2o26PdZCLt/GYDWtx4CO0CoDP4rTEde2PACj9j2LCC
    T1OT6jIN72Is+krlY7Y/gPb9neKeLCSnp8NDzfotJGTeC8BRmIejoWXYcxG1OJvR
    sAi5JhVOvD2GClVZuAuYiTfY427w5zNnSf6UIVEaJ8saojOslR0uA36NBbiMr4Qk
    dFN9e+z3RgrGdIfg4ykPX4qO2/M+xecq5RPcL1tbwqcXiNIWV4I8ydC65PIMlU9u
    uBuruRLsWGGpyNZqPKpM
    =3ItC
    -----END PGP SIGNATURE-----
    
  18. jasonbcox referenced this in commit b7f2d9a123 on Jul 25, 2019
  19. PastaPastaPasta referenced this in commit b53223581d on Jan 17, 2020
  20. PastaPastaPasta referenced this in commit 690189b9d2 on Jan 22, 2020
  21. PastaPastaPasta referenced this in commit 332b024009 on Jan 22, 2020
  22. PastaPastaPasta referenced this in commit d49f484027 on Jan 29, 2020
  23. PastaPastaPasta referenced this in commit e5a8e6f4ea on Jan 29, 2020
  24. PastaPastaPasta referenced this in commit f5ea528ecc on Jan 29, 2020
  25. PastaPastaPasta referenced this in commit 3654f15c91 on Jan 31, 2020
  26. ckti referenced this in commit 735b2f2543 on Mar 28, 2021
  27. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 00:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me