Skip to content

Commit

Permalink
[centrality] changed floydWarshall to betweennessCentrality
Browse files Browse the repository at this point in the history
  • Loading branch information
bedupako12mas committed Jul 22, 2024
1 parent 9ad0063 commit b715364
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pgtap/metrics/types_check.pg
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ BEGIN;

SELECT plan(5);

SELECT has_function('pgr_floydwarshall');
SELECT has_function('pgr_floydwarshall', ARRAY['text','boolean']);
SELECT function_returns('pgr_floydwarshall', ARRAY['text','boolean'],'setof record');
SELECT has_function('pgr_betweennesscentrality');
SELECT has_function('pgr_betweennesscentrality', ARRAY['text','boolean']);
SELECT function_returns('pgr_betweennesscentrality', ARRAY['text','boolean'],'setof record');

SELECT set_eq(
$$SELECT proargnames from pg_proc where proname = 'pgr_floydwarshall'$$,
$$SELECT proargnames from pg_proc where proname = 'pgr_betweennesscentrality'$$,
$$VALUES
('{"","directed","start_vid","end_vid","agg_cost"}'::TEXT[])
$$);

SELECT set_eq(
$$SELECT proallargtypes from pg_proc where proname = 'pgr_floydwarshall'$$,
$$SELECT proallargtypes from pg_proc where proname = 'pgr_betweennesscentrality'$$,
$$VALUES
('{25,16,20,20,701}'::OID[])
$$);
Expand Down

0 comments on commit b715364

Please sign in to comment.