Greenbone Vulnerability Management Libraries: util/credentialutils_tests.c File Reference

Greenbone Vulnerability Management Libraries 23.1.2

Functions
credentialutils_tests.c File Reference
`#include "credentialutils.c"`
`#include <cgreen/cgreen.h>`
`#include <cgreen/mocks.h>`
`#include <fcntl.h>`

## Functions
| Describe (credentialutils)
| BeforeEach (credentialutils)
| AfterEach (credentialutils)
static void | collect_auth_data (const char *name, const char *value, void *user_data)
| Ensure (credentialutils, credentialutils_set_and_retrieve_auth_data)
| Ensure (credentialutils, credentialutils_set_and_unset_auth_data)
| Ensure (credentialutils, credentialutils_set_auth_data_rejects_invalid_name)
| Ensure (credentialutils, credentialutils_foreach_auth_data)
int | main (int argc, char **argv)

## Function Documentation

## ◆ AfterEach()

AfterEach | ( | credentialutils |  | ) |

## ◆ BeforeEach()

BeforeEach | ( | credentialutils |  | ) |

## ◆ collect_auth_data()

void collect_auth_data | ( | const char * | name,
|  | const char * | value,
|  | void * | user_data )
| static

## ◆ Describe()

Describe | ( | credentialutils |  | ) |

## ◆ Ensure() [1/4]

Ensure | ( | credentialutils | ,
|  | credentialutils_foreach_auth_data | )

## ◆ Ensure() [2/4]

Ensure | ( | credentialutils | ,
|  | credentialutils_set_and_retrieve_auth_data | )

## ◆ Ensure() [3/4]

Ensure | ( | credentialutils | ,
|  | credentialutils_set_and_unset_auth_data | )

## ◆ Ensure() [4/4]

Ensure | ( | credentialutils | ,
|  | credentialutils_set_auth_data_rejects_invalid_name | )

## ◆ main()

int main | ( | int | argc,
|  | char ** | argv )