test C and C++ detection when editing header files
This commit is contained in:
parent
f53044fd23
commit
4c8919f9ac
11 changed files with 49 additions and 17 deletions
0
tests/samples/codefiles/emptyfile.txt
Normal file
0
tests/samples/codefiles/emptyfile.txt
Normal file
26
tests/samples/codefiles/python.py
Normal file
26
tests/samples/codefiles/python.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
|
||||
import os
|
||||
import django
|
||||
import simplejson as json
|
||||
from wakatime import utils
|
||||
from mypackage.mymodule import myfunction
|
||||
from . import privatemodule
|
||||
|
||||
try:
|
||||
from mock import ANY
|
||||
except ImportError:
|
||||
from unittest.mock import ANY
|
||||
|
||||
|
||||
class MyClass(object):
|
||||
"""this class
|
||||
"""
|
||||
|
||||
def method1(self):
|
||||
a = 1 + 2
|
||||
b = 'hello world!'
|
||||
for x in y:
|
||||
print(x)
|
||||
raise Exception()
|
0
tests/samples/codefiles/see.c
Normal file
0
tests/samples/codefiles/see.c
Normal file
0
tests/samples/codefiles/see.h
Normal file
0
tests/samples/codefiles/see.h
Normal file
0
tests/samples/codefiles/seeplusplus.cpp
Normal file
0
tests/samples/codefiles/seeplusplus.cpp
Normal file
0
tests/samples/codefiles/seeplusplus.h
Normal file
0
tests/samples/codefiles/seeplusplus.h
Normal file
2
tests/samples/codefiles/twolinefile.txt
Normal file
2
tests/samples/codefiles/twolinefile.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
first line
|
||||
second line
|
Loading…
Add table
Add a link
Reference in a new issue