Refactor tst_QGeoPath::contains()


Let the test take a QList<QGeoCoordinate> as its input data instead of
a fixed amount of coordinates.
This is a preparation for extending the test in scope of the linked
Jira ticket.

As a drive-by: make all the variables in the test const, because they
are never changed.

Task-number: QTBUG-142317
Pick-to: 6.11 6.10 6.8 6.5
Change-Id: I1e1a3e01e50e3d236f5a2f3a87818b26818f2679
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
commit9a4e60b591455d60b12ffffbc07be593d9c0e21a
parent59d38a2ce59927bfe412700d635ae780794877fa
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeFri, 12 Dec 2025 10:12:47 +0100