LCOV - code coverage report
Current view: top level - db - db_graph_edge.cc (source / functions) Hit Total Coverage
Test: OpenSDN C/C++ coverage (all TARGET_SET jobs) Lines: 12 18 66.7 %
Date: 2026-06-18 01:51:13 Functions: 4 6 66.7 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
       3             :  */
       4             : 
       5             : #include "db/db_graph_edge.h"
       6             : 
       7             : #include "db/db_graph.h"
       8             : 
       9      644293 : DBGraphEdge::DBGraphEdge() {
      10      644293 : }
      11             : 
      12      190628 : void DBGraphEdge::SetEdge(Edge edge) {
      13      190628 :     assert(!IsDeleted());
      14      190628 :     edge_id_ = edge;
      15      190628 : }
      16             : 
      17      115110 : DBGraphVertex *DBGraphEdge::source(DBGraph *graph) {
      18      115110 :     Vertex s = boost::source(edge_id_, *graph->graph());
      19      115110 :     return graph->vertex_data(s);
      20             : }
      21             : 
      22           0 : const DBGraphVertex *DBGraphEdge::source(DBGraph *graph) const {
      23           0 :     Vertex s = boost::source(edge_id_, *graph->graph());
      24           0 :     return graph->vertex_data(s);
      25             : }
      26             : 
      27      289866 : DBGraphVertex *DBGraphEdge::target(DBGraph *graph) {
      28      289866 :     Vertex t = boost::target(edge_id_, *graph->graph());
      29      289866 :     return graph->vertex_data(t);
      30             : }
      31             : 
      32           0 : const DBGraphVertex *DBGraphEdge::target(DBGraph *graph) const {
      33           0 :     Vertex t = boost::target(edge_id_, *graph->graph());
      34           0 :     return graph->vertex_data(t);
      35             : }
      36             : 

Generated by: LCOV version 1.14