| 49 | } |
| 50 | |
| 51 | static 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 | |
| 68 | static void usage(const char* procname) { |
| 69 | printf("usage: %s -h [help] -m [move buf after scan]\r\n", procname); |
no test coverage detected
searching dependent graphs…