Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-83258

Add tests for QtConcurrent::mappedReduced() with different types for result and intermediate

    XMLWordPrintable

Details

    • 8
    • Qt6_Foundation_ Sprint 6, Qt6_Foundation_ Sprint 7

    Description

      Documentation says it's possible to define the reduce function as follows:

      V function(T &result, const U &intermediate)

      where T is the type of the final result, U is the return type of the map function.

      However, all our tests operate only on cases where T is the same as U.

      Please check the qtbase/tests/auto/concurrent/qtconcurrentmap/functions.h. The last class there "NumberSumReduce" is prepared for the test, however, there are no tests for it inside tst_qtconcurrentmap.cpp.

      I've just checked that it works OK, so adding tests for it would be useful.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jkobus Jarek Kobus
              jkobus Jarek Kobus
              Maurice Kalinowski Maurice Kalinowski
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes