This requires your project to be configured with `–enable-coverage`. This way it compiles in a way to be instrumented.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| note | |
| description : "root class of the application" | |
| date : "$Date$" | |
| revision : "$Revision$" | |
| class | |
| APPLICATION | |
| inherit | |
| ARGUMENTS_32 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define HUMAN 0 | |
| #define DOG 1 | |
| struct animal { | |
| int type; | |
| char* name; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env bash | |
| set -eu | |
| ip -br a s eth0 | awk '{ split($3,a,"/"); print a[1]; }' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| . | |
| ├── BUILD | |
| │ ├── test-0.0.1 | |
| │ │ └── test.sh | |
| │ └── test.sh | |
| ├── BUILDROOT | |
| ├── RPMS | |
| │ └── x86_64 | |
| │ └── test-0.0.1-1.el8.x86_64.rpm | |
| ├── SOURCES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // `isAuth`, `validateBody` e `addCredit` podem term cada um um tipo de erro diferente. | |
| // temos 2 maneiras: classificar os erros no mesmo dominio (mais comum) | |
| // ou, precisa de um objeto de unificação (existem outras tecnicas mais exóticas). | |
| // Modo mais comum. | |
| class CreateAccountErrors {} | |
| class NotAuthError extends CreateAccountErrors {} | |
| class ValidateCreateAccountError extends CreateAccountErrors {} | |
| class AddCreditError extends CreateAccountErrors {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { nixpkgs ? import <nixpkgs> {} }: | |
| let | |
| inherit (nixpkgs) pkgs; | |
| erlang = nixpkgs.beam.interpreters.erlangR25.override { | |
| configureFlags = ["--disable-jit"]; | |
| }; | |
| beamPackages = nixpkgs.beam.packagesWith erlang; | |
| in pkgs.mkShell { | |
| nativeBuildInputs = with pkgs; [erlang elixir]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { taggedSum } = require('daggy'); | |
| const AuthenticationError = taggedSum( | |
| 'AuthenticationError', | |
| { | |
| AccountSuspended: [], | |
| InformationMismatch: [], | |
| } | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default function BaseComponent(apicall) { | |
| return (props): React.FC => { // <<- this is the real renderable component | |
| const { /* ... */ } = useUser(apicall); | |
| return /* ... */ | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module MVD where | |
| data Kind = Div | A | |
| deriving (Eq, Show) | |
| data Opts = ClassName String | |
| deriving (Eq, Show) | |
| data HTML = HTML Kind Opts | |
| | HText String |
NewerOlder