src/test-map.cc

Branch


Log

Author Commit Date CI Message
Behdad Esfahbod 75f91987 2025-07-25T02:39:47 [src/test-*] Use hb_always_assert() which isn't compiled out under NDEBUG Part of https://github.com/harfbuzz/harfbuzz/issues/5418
Behdad Esfahbod ca27925d 2023-06-03T16:18:15 Use hb_codepoint_pair_t in more places
Behdad Esfahbod be64cae1 2023-03-02T09:50:38 [map] Another try at fixing old Mac builds Maybe fixes https://github.com/harfbuzz/harfbuzz/issues/4138
Behdad Esfahbod 8206569d 2023-01-11T13:24:50 [map] Remove hashmap create/destroy/vtable Unused now.
Behdad Esfahbod adf0bd6d 2023-01-10T17:04:58 [test-map] Add a test
Behdad Esfahbod dc7b3a62 2023-01-05T10:49:10 [test-map] Another test
Behdad Esfahbod a8df5cb0 2023-01-05T10:47:31 [test-map] Test keys() / values()
Behdad Esfahbod 4f607913 2023-01-04T13:58:46 [map] Add hb_map_update()
Behdad Esfahbod ffafcf96 2023-01-04T12:55:59 [map] Add hb_map_next()
Behdad Esfahbod f2851e41 2022-11-23T16:50:30 [test-map] Test has() getter with unique-ptr
Behdad Esfahbod 86a763c6 2022-11-21T20:53:44 [map] Make keys moveable
Behdad Esfahbod cf20d2ec 2022-11-21T20:46:01 [map] Take const key
Behdad Esfahbod 3d1c76f7 2022-11-21T19:40:32 [serializer] Don't hash objects twice
Behdad Esfahbod 3ff8abf2 2022-11-18T19:35:49 Revert "[map] Allow std::move-ing keys into the map" This reverts commit f657ef7e57c889309c2d9d37934368ca255f9d5b. This breaks many compilers with messages like this: hb-subset-plan.hh:226: undefined reference to `OT::head::tableTag' I'm out of my depth re how to fix it.
Behdad Esfahbod a3a218ed 2022-11-18T19:24:41 [map] Add a couple more sink interfaces
Behdad Esfahbod 90226eab 2022-11-18T19:21:58 [test-map] Test inserting shared_ptr key
Behdad Esfahbod f657ef7e 2022-11-18T19:17:03 [map] Allow std::move-ing keys into the map
Behdad Esfahbod e74b372b 2022-11-18T18:41:39 [test-map] Test moving values
Behdad Esfahbod a9c6a20b 2022-11-18T18:29:12 [map] Support moving value in sink interface
Behdad Esfahbod fa0e4b04 2022-11-18T18:20:14 [test-map] Test sink interface
Behdad Esfahbod 4caad572 2022-11-17T15:51:39 [test-map] Add test for reset I expect this to leak now, since we don't destruct items.
Behdad Esfahbod fc22d706 2022-11-17T15:46:48 [test-map] Don't insert null smart-pointers in map Dereferencing them is not supported anymore after 3aad7c2ddffc3f882bf33504dbac31be491c4d72 We don't support that for regular pointers, so don't supporting them for smart-pointers sounds right to me.
Behdad Esfahbod 7595fa2d 2022-11-17T15:19:29 [map] Fix copy-assignment operator Ouch!
Behdad Esfahbod 410c14bf 2022-11-17T14:53:00 [map] Fix equality Ouch!
Behdad Esfahbod 1bd1a378 2022-11-15T15:18:36 [test] Minor
Qunxin Liu dbb7f47b 2022-11-03T11:55:41 fix bug in hb_hashmap_t has() interface It was not working when the value type is hb_bytes_t because hb_array_t overloaded operator &
Qunxin Liu c335bf46 2022-09-26T13:01:20 support dereferencing shared_ptrs and unique_ptrs
Behdad Esfahbod 61c04384 2022-07-20T14:43:58 [map] Allow geting non-const value pointer out with has()
Behdad Esfahbod 485f0432 2022-07-20T14:34:55 [map] Enable using hashmap with unique_ptr
Behdad Esfahbod d8f9d517 2022-07-12T13:19:31 [hashmap] Add keys_ref() and values_ref()
Behdad Esfahbod 88f00ecb 2022-06-03T01:30:27 [map] Fix iter_ref () and test it
Behdad Esfahbod 997d9cc4 2022-06-02T18:04:12 [map] Make unique_ptr hashable
Behdad Esfahbod f0a0dcad 2022-06-02T11:25:56 [test-map] Test hashing shared_ptr
Behdad Esfahbod 4c1b5d9e 2022-06-02T11:25:11 Whitespace
Behdad Esfahbod 3f78a71c 2022-06-02T11:11:35 [map] Finally! Just can usd hb_hashmap_t<obj_t, obj_t> Yay!
Behdad Esfahbod 0ccab339 2022-06-02T10:43:36 [map] Remove invalid-key template arguments since unused
Behdad Esfahbod 3f6a8f69 2022-06-02T10:36:07 [map] Remove invalid-key special-casing Can override invalid-key value now.
Behdad Esfahbod 0d3d5b62 2022-06-02T08:00:08 [cplusplus] Adjustments
Behdad Esfahbod 0b35940a 2022-06-01T15:10:19 Make hb::shared_ptr hashable
Behdad Esfahbod e0f3cab2 2022-06-01T11:51:43 [cplusplus] Add hb-cplusplus.hh Fixes https://github.com/harfbuzz/harfbuzz/issues/2152
Behdad Esfahbod fc5739ea 2022-05-26T11:04:52 [test-map] Whitespace
Behdad Esfahbod 2d0b1248 2022-05-19T13:53:53 [test-map] Test hb_set_t hash stability Fails currently.
Behdad Esfahbod 561e02fe 2022-05-19T13:38:52 [map] Make hb_map_t hashable
Behdad Esfahbod ad176990 2022-05-19T13:36:12 [map] Add is_equal() / towards making hb_map_t hashable New API: + hb_map_is_equal()
Behdad Esfahbod 14a24d8e 2022-05-19T13:03:50 [vector] Make hb_vector_t hashable
Behdad Esfahbod 124f9aeb 2022-05-19T12:58:02 [set] Make hb_set_t hashable
Behdad Esfahbod 7fa580bc 2022-05-12T13:05:32 [map] Fix map copy/move constructors to actually work Ouch!
Garret Rieger ff4e8c7e 2022-01-14T16:20:31 [map] Fix bad memory access if hb_map.fini() was called twice.
Behdad Esfahbod 956e0a4d 2022-01-13T15:06:58 [map] Destruct objects
Behdad Esfahbod bc0a5fdf 2022-01-13T13:34:22 [test-map] Add disabled tests with std::string
Behdad Esfahbod e456922a 2021-11-19T12:04:08 [test] Fix nullptr_t scope issue
Behdad Esfahbod 5157cac0 2021-11-19T12:03:10 [test] Silence unused-variable erros in test
Behdad Esfahbod 394f7729 2021-11-19T11:49:23 [map] Allow storing classes in the hashmap Fixes https://github.com/harfbuzz/harfbuzz/issues/3293 The trick was to change the type of the invalid key/value to be non-class.
Behdad Esfahbod 94158316 2021-11-01T22:47:26 [map] Add iterable constructor
Behdad Esfahbod a03b9b14 2021-11-01T22:45:11 [map] Add initializer_list and swap()
Behdad Esfahbod c30f6834 2021-11-01T22:29:14 [map] Add 5 methods