aboutsummaryrefslogtreecommitdiff
path: root/HACKING
blob: 94b27ae001fe63ff12617c87c5884aee8c9900e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Tests #

Running the tests

    make check

To run a single test in more detail use e.g.

    gtester --verbose libplanfahr/providers/tests/hafas-bin6-format

# Debugging #
You can use the LPF_DEBUG variable to make libplanfahr write out the querry
results. E.g.

   LPF_DEBUG=provider ./run python3 examples/trip-query.py Gelsenkirchen Essen

will put all queries to ~/.cache/libplanfahr/<provider>/.

To build with extensive debugging information use

   ./configure --enable-debug

# Coding Style #
* Use spaces not tabs
* indentation is 4 spaces by default
* Private methods don't use <obj_name> as prefix
* Public methods have "self" as first argument