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-08 02:02:55 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      644318 : DBGraphEdge::DBGraphEdge() {
      10      644318 : }
      11             : 
      12      190648 : void DBGraphEdge::SetEdge(Edge edge) {
      13      190648 :     assert(!IsDeleted());
      14      190648 :     edge_id_ = edge;
      15      190648 : }
      16             : 
      17      115068 : DBGraphVertex *DBGraphEdge::source(DBGraph *graph) {
      18      115068 :     Vertex s = boost::source(edge_id_, *graph->graph());
      19      115068 :     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      289318 : DBGraphVertex *DBGraphEdge::target(DBGraph *graph) {
      28      289318 :     Vertex t = boost::target(edge_id_, *graph->graph());
      29      289318 :     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