LCOV - differential code coverage report
Current view: top level - src/backend/optimizer/geqo - geqo_copy.c (source / functions) Coverage Total Hit CBC
Current: Differential Code Coverage HEAD vs 15 Lines: 100.0 % 5 5 5
Current Date: 2023-04-08 17:13:01 Functions: 100.0 % 1 1 1
Baseline: 15 Line coverage date bins:
Baseline Date: 2023-04-08 15:09:40 (240..) days: 100.0 % 5 5 5
Legend: Lines: hit not hit Function coverage date bins:
(240..) days: 100.0 % 1 1 1

 Age         Owner                  TLA  Line data    Source code
                                  1                 : /*------------------------------------------------------------------------
                                  2                 :  *
                                  3                 :  * geqo_copy.c
                                  4                 :  *
                                  5                 :  * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
                                  6                 :  * Portions Copyright (c) 1994, Regents of the University of California
                                  7                 :  *
                                  8                 :  * src/backend/optimizer/geqo/geqo_copy.c
                                  9                 :  *
                                 10                 :  *-------------------------------------------------------------------------
                                 11                 :  */
                                 12                 : 
                                 13                 : /* contributed by:
                                 14                 :    =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
                                 15                 :    *  Martin Utesch              * Institute of Automatic Control      *
                                 16                 :    =                             = University of Mining and Technology =
                                 17                 :    *  utesch@aut.tu-freiberg.de  * Freiberg, Germany                   *
                                 18                 :    =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
                                 19                 :  */
                                 20                 : 
                                 21                 : /* this is adopted from D. Whitley's Genitor algorithm */
                                 22                 : 
                                 23                 : /*************************************************************/
                                 24                 : /*                                                           */
                                 25                 : /*  Copyright (c) 1990                                       */
                                 26                 : /*  Darrell L. Whitley                                       */
                                 27                 : /*  Computer Science Department                              */
                                 28                 : /*  Colorado State University                                */
                                 29                 : /*                                                           */
                                 30                 : /*  Permission is hereby granted to copy all or any part of  */
                                 31                 : /*  this program for free distribution.   The author's name  */
                                 32                 : /*  and this copyright notice must be included in any copy.  */
                                 33                 : /*                                                           */
                                 34                 : /*************************************************************/
                                 35                 : 
                                 36                 : #include "postgres.h"
                                 37                 : #include "optimizer/geqo_copy.h"
                                 38                 : 
                                 39                 : /* geqo_copy
                                 40                 :  *
                                 41                 :  *   copies one gene to another
                                 42                 :  *
                                 43                 :  */
                                 44                 : void
 5015 tgl                        45 CBC         576 : geqo_copy(PlannerInfo *root, Chromosome *chromo1, Chromosome *chromo2,
                                 46                 :           int string_length)
                                 47                 : {
                                 48                 :     int         i;
                                 49                 : 
 9345 bruce                      50            3456 :     for (i = 0; i < string_length; i++)
                                 51            2880 :         chromo1->string[i] = chromo2->string[i];
                                 52                 : 
                                 53             576 :     chromo1->worth = chromo2->worth;
 9545 scrappy                    54             576 : }
        

Generated by: LCOV version v1.16-55-g56c0a2a