Crinit -- Configurable Rootfs Init
mock-crinit-xfer.c File Reference

(2023-10-16, commit: 49337e0)

Implementation of a mock function for crinitXfer(). More...

#include "mock-crinit-xfer.h"
#include "unit_test.h"
Include dependency graph for mock-crinit-xfer.c:

Functions

int __wrap_crinitXfer (const char *sockFile, crinitRtimCmd_t *res, const crinitRtimCmd_t *cmd)
 

Detailed Description

Implementation of a mock function for crinitXfer().

Function Documentation

◆ __wrap_crinitXfer()

int __wrap_crinitXfer ( const char *  sockFile,
crinitRtimCmd_t res,
const crinitRtimCmd_t cmd 
)

Mock function for crinitXfer().

Checks that the right parameters are given and returns a pre-set value through the cmocka API. Otherwise the function is a no-op.