Lines Matching refs:hostname_cleanup
49 TEST(hostname_cleanup) { in TEST() argument
53 assert_se(streq(hostname_cleanup(s), "foobar")); in TEST()
55 assert_se(streq(hostname_cleanup(s), "foobar.com")); in TEST()
57 assert_se(streq(hostname_cleanup(s), "foobar.com")); in TEST()
59 assert_se(streq(hostname_cleanup(s), "foo-bar.com")); in TEST()
61 assert_se(streq(hostname_cleanup(s), "foo-bar--com")); in TEST()
63 assert_se(streq(hostname_cleanup(s), "foo-bar.com")); in TEST()
65 assert_se(streq(hostname_cleanup(s), "fooBAR")); in TEST()
67 assert_se(streq(hostname_cleanup(s), "fooBAR.com")); in TEST()
69 assert_se(streq(hostname_cleanup(s), "fooBAR")); in TEST()
71 assert_se(streq(hostname_cleanup(s), "fooBAR.com")); in TEST()
73 assert_se(streq(hostname_cleanup(s), "fbar")); in TEST()
75 assert_se(isempty(hostname_cleanup(s))); in TEST()
77 assert_se(isempty(hostname_cleanup(s))); in TEST()
79 assert_se(isempty(hostname_cleanup(s))); in TEST()
81 assert_se(streq(hostname_cleanup(s), "foobar")); in TEST()
83 assert_se(streq(hostname_cleanup(s), "foobar")); in TEST()
85 assert_se(streq(hostname_cleanup(s), "foo.bar")); in TEST()
87 assert_se(streq(hostname_cleanup(s), "foo.bar")); in TEST()
89 …assert_se(streq(hostname_cleanup(s), "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx… in TEST()
91 …assert_se(streq(hostname_cleanup(s), "xxxx.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx… in TEST()