Skip to content

Commit 51f7b07

Browse files
committed
test: first fix - map
1 parent c18d828 commit 51f7b07

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

platformio.ini

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1+
; PlatformIO Project Configuration File
2+
;
3+
; Build options: build flags, source filter
4+
; Upload options: custom upload port, speed and extra flags
5+
; Library options: dependencies, extra library storages
6+
; Advanced options: extra scripting
7+
;
8+
; Please visit documentation for the other options and examples
9+
; https://docs.platformio.org/page/projectconf.html
10+
111
[env:native]
212
platform = native
313
build_flags = -std=gnu++11
4-
-I .pio/libdeps/native/FakeIt/single_header/standalone
14+
-I .pio/libdeps/native/FakeIt/single_header/standalone
515
test_build_src = yes
6-
lib_deps = https://github.com/eranpeer/FakeIt.git
7-
8-
# [env:debug]
9-
# platform = native
10-
# build_flags = -std=gnu++17
11-
# test_build_src = yes
12-
# build_type = debug
13-
# debug_test = *
16+
lib_deps =
17+
https://github.com/eranpeer/FakeIt.git
18+
throwtheswitch/Unity@^2.5.2

src/ArduinoFake.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define USBCON
55
#endif
66

7-
#include <map>
7+
#include <unordered_map>
88
#include <cstring>
99
#include <cstdint>
1010
#include <stdexcept>
@@ -91,7 +91,7 @@ class ArduinoFakeContext
9191
public:
9292
ArduinoFakeInstances* Instances = new ArduinoFakeInstances();
9393
ArduinoFakeMocks* Mocks = new ArduinoFakeMocks();
94-
std::map<void*, void*> Mapping;
94+
std::unordered_map<void*, void*> Mapping;
9595

9696
_ArduinoFakeInstanceGetter1(Print)
9797
_ArduinoFakeInstanceGetter1(Stream)

0 commit comments

Comments
 (0)