MCPcopy Create free account
hub / github.com/acl-dev/acl / test

Function test

lib_acl_cpp/samples/string/string2/main.cpp:51–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51static void test(void) {
52 acl::string path("/data1/www/video/test/test.ts");
53 const char* disk = "/data1/www";
54 if (path.begin_with(disk)) {
55 printf("ok\r\n");
56 } else {
57 printf("error\r\n");
58 }
59
60 disk = "/data2/www";
61 if (path.begin_with(disk)) {
62 printf("error\r\n");
63 } else {
64 printf("ok\r\n");
65 }
66}
67
68static void usage(const char* procname) {
69 printf("usage: %s -h [help] -m [move buf after scan]\r\n", procname);

Callers 1

mainFunction · 0.70

Calls 1

begin_withMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…