| 103 | } |
| 104 | |
| 105 | int main(int argc, char* argv[]) |
| 106 | { |
| 107 | int ch; |
| 108 | acl::string filepath, plain, key; |
| 109 | |
| 110 | while ((ch = getopt(argc, argv, "hf:k:s:")) > 0) { |
| 111 | switch (ch) { |
| 112 | case 'h': |
| 113 | usage(argv[0]); |
| 114 | return 0; |
| 115 | case 'f': |
| 116 | filepath = optarg; |
| 117 | break; |
| 118 | case 'k': |
| 119 | key = optarg; |
| 120 | break; |
| 121 | case 's': |
| 122 | plain = optarg; |
| 123 | break; |
| 124 | default: |
| 125 | break; |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | base_test(); |
| 130 | |
| 131 | if (!filepath.empty()) { |
| 132 | check_file(filepath); |
| 133 | } |
| 134 | |
| 135 | if (!plain.empty()) { |
| 136 | check_string(key, plain); |
| 137 | } else { |
| 138 | printf("plain empty!\r\n"); |
| 139 | } |
| 140 | |
| 141 | #if defined(_WIN32) || defined(_WIN64) |
| 142 | getchar(); |
| 143 | #endif |
| 144 | return 0; |
| 145 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…