Open thisisashukla opened 7 years ago
Standardized Array Variable Names
Pointers on Code
//TODO "write your comment"
Study the signatures of pgr_contractGraph and pgr_dijkstra_many_to_many
Pointers on creating a new function
So, suppose I start to create a new function, pgr_foo at the begining I just have the template's code and that is using pgr_dijkstra but pgr_foo its not going to do a dikstra, it is going to do a Foo and Foo is the code that has to be written while its not written, or its half way written
So, to avoid tests on pgr_foo in src/foo/test/test.conf
In tools/testesrs/pg_prove_tests.sh
Tests will be reactivated & maybe redesigned when you finish the code and you need to start testing
Try to commit as often as possible, and push at the end of the day
One thing for sure, the other function's tests must pass but testing locally can take a long time so while working locally test that this is not affected tools/testers/algorithm-tester.pl -alg dijkstra
run.sh
In any case when the push is done, all the tests of the other functions will be performed on Travis and they all should pass
In the development
Pgr_dijkstra< G > fn_dijkstra; return fn_dijkstra.dijkstra(graph, 0, 0);
to
return Path()
Basically what is done is:
[x] Change General_path_t
to a new structure with a convenient name, that might be useful for the other functions which will be coded in future. Do that in here: https://github.com/XJTUmg/pgrouting/tree/gsoc/connectComponent/include/c_types once you create the structure, modify the C/C++ code with the new structure
[x] 'tests' => [qw(doc-connectedComponentsV)]
to 'tests' => []
[ ] 'pending_tests' => [qw(doc-connectedComponentsV)]
Run the tests, and change the result file
That is an example:
[x] 'documentation' => [qw(doc-connectedComponentsV)]
change it to 'documentation' => [ ]
Few pointers on Git: Recover Deleted Files
Discussion on the standard for array size variable
A) size_t size_borderVertices = 0; B) size_t size_border_vertices = 0; C) size_t border_vertices_size = 0;
My Reason for choosing B:
Vicky Vergara's Reason for choosing C:
size_t border_vertices_size = 0; prevails as the standard for array size variables
Working of C templates
References:
Implement Changes in Template Code
Modify generated template files to suit the needs of the desired function
[ ] Fix Travis Warnings
[ ] Fix Appveyor Warnings
[ ] Fix Documentation tests
[ ] Fix pgTap Tests