feat: unit-test with cmocka

- Test only 1 function which is in utils2.c
    - Because is not inlude nano sdk
- Move zemu's into functional folder
    - Change path of zemu's test in CI and Makefile
This commit is contained in:
Alexandre Paillier
2022-06-28 14:38:19 +02:00
committed by Coline
parent 4eb7109b86
commit ad8334e54c
356 changed files with 573 additions and 11 deletions

View File

@@ -0,0 +1,19 @@
import expect from 'expect'
expect.extend({
toMatchSnapshot(received, original) {
if(received.data.equals(original.data)){
return {
message: () => `snapshots are equal`,
pass: true
}
} else {
console.log("snapshots are not equal")
return {
message: () => `snapshots are not equal`,
pass: false
}
}
},
});