* mempat -- Set the memory to a pattern * * Used mainly to check that we don't mix fields while * serializing/unserializing. */
| 946 | * serializing/unserializing. |
| 947 | */ |
| 948 | static void mempat(void *dst, size_t len) |
| 949 | { |
| 950 | static int n = 0; |
| 951 | u8 *p = (u8*)dst; |
| 952 | for(int i=0 ; i < len; ++i) |
| 953 | p[i] = n % 251; /* Prime */ |
| 954 | } |
| 955 | |
| 956 | /* Destructor for the wallet which unlinks the underlying file */ |
| 957 | static void cleanup_test_wallet(struct wallet *w, char *filename) |
no outgoing calls
no test coverage detected