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-11-30 02:00:48 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             :  * Copyright Contributors to the OpenSDN project
       4             :  */
       5             : 
       6             : #include "db/db_graph_edge.h"
       7             : 
       8             : #include "db/db_graph.h"
       9             : 
      10      647569 : DBGraphEdge::DBGraphEdge() {
      11      647569 : }
      12             : 
      13      191526 : void DBGraphEdge::SetEdge(Edge edge) {
      14      191526 :     assert(!IsDeleted());
      15      191526 :     edge_id_ = edge;
      16      191526 : }
      17             : 
      18      115470 : DBGraphVertex *DBGraphEdge::source(DBGraph *graph) {
      19      115470 :     Vertex s = boost::source(edge_id_, *graph->graph());
      20      115470 :     return graph->vertex_data(s);
      21             : }
      22             : 
      23           0 : const DBGraphVertex *DBGraphEdge::source(DBGraph *graph) const {
      24           0 :     Vertex s = boost::source(edge_id_, *graph->graph());
      25           0 :     return graph->vertex_data(s);
      26             : }
      27             : 
      28      293249 : DBGraphVertex *DBGraphEdge::target(DBGraph *graph) {
      29      293249 :     Vertex t = boost::target(edge_id_, *graph->graph());
      30      293249 :     return graph->vertex_data(t);
      31             : }
      32             : 
      33           0 : const DBGraphVertex *DBGraphEdge::target(DBGraph *graph) const {
      34           0 :     Vertex t = boost::target(edge_id_, *graph->graph());
      35           0 :     return graph->vertex_data(t);
      36             : }
      37             : 

Generated by: LCOV version 1.14