LCOV - code coverage report
Current view: top level - builtins - colon.def (source / functions) Hit Total Coverage
Test: cov-sh.info Lines: 4 4 100.0 %
Date: 2020-10-29 14:49:55 Functions: 2 2 100.0 %

          Line data    Source code
       1             : This file is colon.def, from which is created colon.c.
       2             : It implements the builtin ":" in Bash.
       3             : 
       4             : Copyright (C) 1987-2009 Free Software Foundation, Inc.
       5             : 
       6             : This file is part of GNU Bash, the Bourne Again SHell.
       7             : 
       8             : Bash is free software: you can redistribute it and/or modify
       9             : it under the terms of the GNU General Public License as published by
      10             : the Free Software Foundation, either version 3 of the License, or
      11             : (at your option) any later version.
      12             : 
      13             : Bash is distributed in the hope that it will be useful,
      14             : but WITHOUT ANY WARRANTY; without even the implied warranty of
      15             : MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      16             : GNU General Public License for more details.
      17             : 
      18             : You should have received a copy of the GNU General Public License
      19             : along with Bash.  If not, see <http://www.gnu.org/licenses/>.
      20             : 
      21             : $PRODUCES colon.c
      22             : 
      23             : $BUILTIN :
      24             : $DOCNAME colon
      25             : $FUNCTION colon_builtin
      26             : $SHORT_DOC :
      27             : Null command.
      28             : 
      29             : No effect; the command does nothing.
      30             : 
      31             : Exit Status:
      32             : Always succeeds.
      33             : $END
      34             : 
      35             : $BUILTIN true
      36             : $FUNCTION colon_builtin
      37             : $SHORT_DOC true
      38             : Return a successful result.
      39             : 
      40             : Exit Status:
      41             : Always succeeds.
      42             : $END
      43             : 
      44             : $BUILTIN false
      45             : $FUNCTION false_builtin
      46             : $SHORT_DOC false
      47             : Return an unsuccessful result.
      48             : 
      49             : Exit Status:
      50             : Always fails.
      51             : $END
      52             : 
      53             : /* Return a successful result. */
      54             : int
      55         280 : colon_builtin (ignore)
      56             :      char *ignore;
      57             : {
      58         280 :   return (0);
      59             : }
      60             : 
      61             : /* Return an unsuccessful result. */
      62             : int
      63          64 : false_builtin (ignore)
      64             :      char *ignore;
      65             : {
      66          64 :   return (1);
      67             : }

Generated by: LCOV version 1.14.0.6.4058