Пример #1
0
                  @"4254feca3ece9397cd501921ee733f19ea0fdad8", 6457)] // 3
        //[TestCase(@"https://github.com/JakeWharton/ActionBarSherlock",
        //        @"4a79d536af872339899a90d6dc743aa57745474b", 6360)]
        //[TestCase(@"https://github.com/nostra13/Android-Universal-Image-Loader",
        //        @"b3888a4f35d31a3e7b96c9f7a5665216c1946bb5", 6210)]
        //[TestCase(@"https://github.com/github/android",
        //        @"fbfb63c6607d8077018c245d7508f0fedab65dbb", 4910)]
        //[TestCase(@"https://github.com/libgdx/libgdx",
        //        @"806ba436b1805c3d56c22a3b25b7fd383bc44c40", 4829)]
        //[TestCase(@"https://github.com/google/iosched",
        //        @"f2e87424ea7cc0c3f8022f984966091ea746a23e", 4669)]
        //[TestCase(@"https://github.com/loopj/android-async-http",
        //        @"b954a3178751b5fcf051f4c0134774cc51ba5fcc", 4581)]
        //[TestCase(@"https://github.com/JakeWharton/Android-ViewPagerIndicator",
        //        @"8cd549f23f3d20ff920e19a2345c54983f65e26b", 4417)]
        public void ParseGitRepository(string url, string commitPointer, int starCount)
        {
            Action <string> parse = code => {
                var parser =
                    new JavaParser(
                        new CommonTokenStream(new JavaLexer(new ANTLRStringStream(code))));
                parser.TraceDestination = Console.Error;
                var ret = parser.compilationUnit();
            };

            MeasurePerformance(url, commitPointer, parse, "*.java");
        }
         @"4254feca3ece9397cd501921ee733f19ea0fdad8", 6457)] // 3
 //[TestCase(@"https://github.com/JakeWharton/ActionBarSherlock",
 //        @"4a79d536af872339899a90d6dc743aa57745474b", 6360)]
 //[TestCase(@"https://github.com/nostra13/Android-Universal-Image-Loader",
 //        @"b3888a4f35d31a3e7b96c9f7a5665216c1946bb5", 6210)]
 //[TestCase(@"https://github.com/github/android",
 //        @"fbfb63c6607d8077018c245d7508f0fedab65dbb", 4910)]
 //[TestCase(@"https://github.com/libgdx/libgdx",
 //        @"806ba436b1805c3d56c22a3b25b7fd383bc44c40", 4829)]
 //[TestCase(@"https://github.com/google/iosched",
 //        @"f2e87424ea7cc0c3f8022f984966091ea746a23e", 4669)]
 //[TestCase(@"https://github.com/loopj/android-async-http",
 //        @"b954a3178751b5fcf051f4c0134774cc51ba5fcc", 4581)]
 //[TestCase(@"https://github.com/JakeWharton/Android-ViewPagerIndicator",
 //        @"8cd549f23f3d20ff920e19a2345c54983f65e26b", 4417)]
 public void ParseGitRepository(string url, string commitPointer, int starCount) {
     Action<string> parse = code => {
         var parser =
                 new JavaParser(
                         new CommonTokenStream(new JavaLexer(new ANTLRStringStream(code))));
         parser.TraceDestination = Console.Error;
         var ret = parser.compilationUnit();
     };
     MeasurePerformance(url, commitPointer, parse, "*.java");
 }