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-09 02:10:49 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      652151 : DBGraphEdge::DBGraphEdge() {
      11      652151 : }
      12             : 
      13      192666 : void DBGraphEdge::SetEdge(Edge edge) {
      14      192666 :     assert(!IsDeleted());
      15      192666 :     edge_id_ = edge;
      16      192666 : }
      17             : 
      18      117195 : DBGraphVertex *DBGraphEdge::source(DBGraph *graph) {
      19      117195 :     Vertex s = boost::source(edge_id_, *graph->graph());
      20      117195 :     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      297279 : DBGraphVertex *DBGraphEdge::target(DBGraph *graph) {
      29      297279 :     Vertex t = boost::target(edge_id_, *graph->graph());
      30      297279 :     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