Crinit -- Configurable Rootfs Init
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
case-null-input.c File Reference

(/usr/bin/git 2024-02-13, commit: 5a1c351)

Unit test for crinitKernelCmdlineLex() with NULL inputs. More...

#include "common.h"
#include "lexers.h"
#include "unit_test.h"
#include "utest-lexers-kcmdline.h"
Include dependency graph for case-null-input.c:

Functions

void crinitKernelCmdlineLexTestNullInput (void **state)
 

Detailed Description

Unit test for crinitKernelCmdlineLex() with NULL inputs.

Function Documentation

◆ crinitKernelCmdlineLexTestNullInput()

void crinitKernelCmdlineLexTestNullInput ( void **  state)

Tests detection of NULL pointer inputs.

crinitKernelCmdlineLex() shall fail if any pointer input parameter is NULL and/or the string in *s is NULL.