Refactor tests to use mock instead of real STM 79/181879/1
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Mon, 18 Jun 2018 11:37:49 +0000 (13:37 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Mon, 18 Jun 2018 12:14:30 +0000 (14:14 +0200)
commita2f2f68976d10d54aac1bce12b4810f9c6f9f736
tree06ad89c3738d9ef26cba57cd57b7a0d77e538efe
parent465033767352dc75ac9297a7a722ddc5fed63a7b
Refactor tests to use mock instead of real STM

Testing this part of code was troublesome as a working MuxPi was needed.
Due to recent changes in git.tizen.org/tools/muxpi/sw/nanopi/stm,
functions of STM are exposed with Interface. It is easier to test using
a mockup.

Change-Id: I5c2be2ae717b448f3182896074faefd8f2ea1971
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
dryad/muxpi.go
dryad/muxpi_mock_test.go [new file with mode: 0644]
dryad/rusalka.go
dryad/rusalka_test.go