void test_mutt_path_abbr_folder(void)
{
// bool mutt_path_abbr_folder(char *buf, size_t buflen, const char *folder);
+
+ {
+ TEST_CHECK(!mutt_path_abbr_folder(NULL, 10, "apple"));
+ }
+
+ {
+ char buf[32] = { 0 };
+ TEST_CHECK(!mutt_path_abbr_folder(buf, sizeof(buf), NULL));
+ }
}
void test_mutt_path_basename(void)
{
// const char *mutt_path_basename(const char *f);
+
+ {
+ mutt_path_basename(NULL);
+ TEST_CHECK_(1, "mutt_path_basename(NULL)");
+ }
}
void test_mutt_path_canon(void)
{
// bool mutt_path_canon(char *buf, size_t buflen, const char *homedir);
+
+ {
+ TEST_CHECK(!mutt_path_canon(NULL, 10, "apple"));
+ }
}
void test_mutt_path_concat(void)
{
// char *mutt_path_concat(char *d, const char *dir, const char *fname, size_t l);
+
+ {
+ TEST_CHECK(mutt_path_concat(NULL, "apple", "banana", 5) == NULL);
+ }
+
+ {
+ char buf[32] = { 0 };
+ TEST_CHECK(mutt_path_concat(buf, NULL, "banana", 5) == NULL);
+ }
+
+ {
+ char buf[32] = { 0 };
+ TEST_CHECK(mutt_path_concat(buf, "apple", NULL, 5) == NULL);
+ }
}
void test_mutt_path_concatn(void)
{
// char *mutt_path_concatn(char *dst, size_t dstlen, const char *dir, size_t dirlen, const char *fname, size_t fnamelen);
+
+ {
+ TEST_CHECK(mutt_path_concatn(NULL, 10, "apple", 5, "banana", 6) == NULL);
+ }
+
+ {
+ char buf[32] = { 0 };
+ TEST_CHECK(mutt_path_concatn(buf, sizeof(buf), NULL, 5, "banana", 6) == NULL);
+ }
+
+ {
+ char buf[32] = { 0 };
+ TEST_CHECK(mutt_path_concatn(buf, sizeof(buf), "apple", 5, NULL, 6) == NULL);
+ }
}
void test_mutt_path_dirname(void)
{
// char *mutt_path_dirname(const char *path);
+
+ {
+ TEST_CHECK(mutt_path_dirname(NULL) == NULL);
+ }
}
void test_mutt_path_escape(void)
{
// char *mutt_path_escape(const char *src);
+
+ {
+ TEST_CHECK(mutt_path_escape(NULL) == NULL);
+ }
}
void test_mutt_path_getcwd(void)
{
// void mutt_path_getcwd(struct Buffer *cwd);
+
+ {
+ mutt_path_getcwd(NULL);
+ TEST_CHECK_(1, "mutt_path_getcwd(NULL)");
+ }
}
void test_mutt_path_parent(void)
{
// bool mutt_path_parent(char *buf, size_t buflen);
+
+ {
+ TEST_CHECK(!mutt_path_parent(NULL, 10));
+ }
}
void test_mutt_path_pretty(void)
{
// bool mutt_path_pretty(char *buf, size_t buflen, const char *homedir);
+
+ {
+ TEST_CHECK(!mutt_path_pretty(NULL, 10, "apple"));
+ }
+
+ {
+ char buf[32] = { 0 };
+ TEST_CHECK(!mutt_path_pretty(buf, sizeof(buf), NULL));
+ }
}
void test_mutt_path_realpath(void)
{
// size_t mutt_path_realpath(char *buf);
+
+ {
+ TEST_CHECK(mutt_path_realpath(NULL) == 0);
+ }
}
void test_mutt_path_tidy(void)
{
// bool mutt_path_tidy(char *buf);
+
+ {
+ TEST_CHECK(!mutt_path_tidy(NULL));
+ }
}
void test_mutt_path_tidy_dotdot(void)
{
// bool mutt_path_tidy_dotdot(char *buf);
+
+ {
+ TEST_CHECK(!mutt_path_tidy_dotdot(NULL));
+ }
}
void test_mutt_path_tidy_slash(void)
{
// bool mutt_path_tidy_slash(char *buf);
+
+ {
+ TEST_CHECK(!mutt_path_tidy_slash(NULL));
+ }
}
void test_mutt_path_to_absolute(void)
{
// int mutt_path_to_absolute(char *path, const char *reference);
+
+ {
+ TEST_CHECK(!mutt_path_to_absolute(NULL, "apple"));
+ }
+
+ {
+ TEST_CHECK(!mutt_path_to_absolute("apple", NULL));
+ }
}