[all-commits] [llvm/llvm-project] 8c6b24: [libcxx][test][NFC] Various tests for std::vector

kboyarinov via All-commits all-commits at lists.llvm.org
Wed Dec 1 15:16:32 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c6b24899e51648286bb812d92a23a28798c53eb
      https://github.com/llvm/llvm-project/commit/8c6b24899e51648286bb812d92a23a28798c53eb
  Author: Konstantin Boyarinov <konstantin.boyarinov at intel.com>
  Date:   2021-12-02 (Thu, 02 Dec 2021)

  Changed paths:
    M libcxx/test/std/containers/sequences/vector/access.pass.cpp
    A libcxx/test/std/containers/sequences/vector/reverse_iterators.pass.cpp
    M libcxx/test/std/containers/sequences/vector/vector.capacity/reserve.pass.cpp
    M libcxx/test/std/containers/sequences/vector/vector.cons/assign_copy.pass.cpp
    M libcxx/test/std/containers/sequences/vector/vector.modifiers/emplace_extra.pass.cpp
    A libcxx/test/std/containers/sequences/vector/vector.modifiers/insert_iter_lvalue.pass.cpp
    R libcxx/test/std/containers/sequences/vector/vector.modifiers/insert_iter_value.pass.cpp
    M libcxx/test/support/allocators.h

  Log Message:
  -----------
  [libcxx][test][NFC] Various tests for std::vector

Add missing tests for std::vector funcionality to improve code coverage:

  - Rewrote access tests to check modification of the container using
    the reference returned by the non-const overload
  - Added tests for reverse iterators: rbegin, rend, etc.
  - Added exception test for vector::reserve
  - Extended test cases for vector copy assignment
  - Fixed insert_iter_value.pass.cpp to use insert overload with const
    value_type& (not with value_type&& which is tested in
    iter_rvalue.pass.cpp test)

Reviewed By: Quuxplusone, rarutyun, #libc

Differential Revision: https://reviews.llvm.org/D112438




More information about the All-commits mailing list