LCOV - code coverage report
Current view: directory - xpcom/tests - TestArguments.cpp (source / functions) Found Hit Coverage
Test: app.info Lines: 20 11 55.0 %
Date: 2012-06-02 Functions: 1 1 100.0 %

       1                 : #include <string.h>
       2                 : 
       3               3 : int main(int argc, char* argv[]) {
       4               3 :   if (argc != 9)
       5               0 :       return -1;
       6                 : 
       7               3 :   if (strcmp("mozilla", argv[1]) != 0)
       8               0 :       return 1;
       9               3 :   if (strcmp("firefox", argv[2]) != 0)
      10               0 :       return 2;
      11               3 :   if (strcmp("thunderbird", argv[3]) != 0)
      12               0 :       return 3;
      13               3 :   if (strcmp("seamonkey", argv[4]) != 0)
      14               0 :       return 4;
      15               3 :   if (strcmp("foo", argv[5]) != 0)
      16               0 :       return 5;
      17               3 :   if (strcmp("bar", argv[6]) != 0)
      18               0 :       return 6;
      19               3 :   if (strcmp("argument with spaces", argv[7]) != 0)
      20               0 :       return 7;
      21               3 :   if (strcmp("\"argument with quotes\"", argv[8]) != 0)
      22               0 :       return 8;
      23                 :   
      24               3 :   return 0;
      25                 : } 

Generated by: LCOV version 1.7