Skip to content

Commit

Permalink
ClangComplexityBear: Move to c_languages
Browse files Browse the repository at this point in the history
This has nothing to do with the code clone detection.
  • Loading branch information
sils committed Apr 19, 2016
1 parent ef320e3 commit 11f738f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import os
import unittest
from queue import Queue
from clang.cindex import Index

from coalib.settings.Section import Section
from clang.cindex import Index
from coalib.results.Result import Result
from coalib.results.SourceRange import SourceRange
from bears.c_languages.codeclone_detection.ClangComplexityBear import (
from coalib.settings.Section import Section

from bears.c_languages.ClangComplexityBear import (
ClangComplexityBear)
from tests.BearTestHelper import generate_skip_decorator
from tests.LocalBearTestHelper import execute_bear
Expand All @@ -17,6 +18,7 @@ class ClangComplexityBearTest(unittest.TestCase):

def setUp(self):
self.filename = os.path.abspath(os.path.join(os.path.dirname(__file__),
"codeclone_detection",
"conditions_samples.c"))
self.file = "fake"
self.queue = Queue()
Expand Down Expand Up @@ -69,6 +71,7 @@ def test_empty_declared_function(self):
Should not take into account and display empty function declarations.
"""
self.filename = os.path.abspath(os.path.join(os.path.dirname(__file__),
"test_files",
"empty_declarations.c"))
expected = [('with_body(int *)', 1)]

Expand Down

0 comments on commit 11f738f

Please sign in to comment.