good morning!!!!

Skip to content
Snippets Groups Projects
Select Git revision
  • fb3b083efa5e72d35844426f20c8cfcdec00a57d
  • master default protected
  • mafredri/http2
  • danielle/type-error-return
  • mafredri/origin-check
  • fix-license-1
  • mafredri/build-add-makefile
  • mafredri/build-update-to-go1.22
  • mafredri/fix-ci-script-tool-version
  • dependabot/go_modules/internal/examples/internal-deps-4cadc2be3d
  • dependabot/go_modules/internal/examples/internal-deps-46eeb9c117
  • dependabot/go_modules/internal/examples/internal-deps-022ca1aea3
  • mafredri/chore-update-dependabot
  • dependabot/go_modules/internal/thirdparty/github.com/lesismal/nbio-1.5.12
  • dependabot/go_modules/internal/examples/golang.org/x/time-0.7.0
  • dependabot/go_modules/internal/thirdparty/github.com/lesismal/nbio-1.5.11
  • ethan/close-order
  • mafredri/chore-remove-funding
  • mafredri/fix-ci
  • dependabot/go_modules/internal/thirdparty/github.com/gobwas/ws-1.4.0
  • dependabot/go_modules/internal/thirdparty/github.com/gorilla/websocket-1.5.3
  • v1.8.14
  • v1.8.13
  • v1.8.12
  • v1.8.11
  • v1.8.10
  • v1.8.9
  • v1.8.8
  • v1.8.7
  • v1.8.6
  • v1.8.5
  • v1.8.4
  • v1.8.3
  • v1.8.2
  • v1.8.1
  • v1.8.0
  • v1.7.4
  • v1.7.3
  • v1.7.2
  • v1.7.1
  • v1.7.0
41 results

read.go

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    gocoverage.sh 957 B
    #!/bin/bash
    
    set -e
    
    # Add godep workspace to GOPATH. We do it manually instead of using
    # 'godep go test' or 'godep restore' so godep doesn't need to be installed.
    GOPATH="$PWD/Godeps/_workspace:$GOPATH"
    
    # Install packages before testing. Not doing this would cause
    # 'go test' to recompile all package dependencies before testing each package.
    go install ./...
    
    # Run test coverage on each subdirectories and merge the coverage profile.
    echo "mode: count" > profile.cov
    
    # Standard go tooling behavior is to ignore dirs with leading underscors
    for dir in $(find . -maxdepth 10 -not -path './.git*' -not -path '*/_*' -type d);
    do
    if ls $dir/*.go &> /dev/null; then
        # echo $dir
        if [[ $dir != "./tests/vm" && $dir != "." ]]
        then
            go test -covermode=count -coverprofile=$dir/profile.tmp $dir
        fi
        if [ -f $dir/profile.tmp ]
        then
            cat $dir/profile.tmp | tail -n +2 >> profile.cov
            rm $dir/profile.tmp
        fi
    fi
    done