Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Update alloc.go (DO NOT MERGE) #11

Closed
wants to merge 16 commits into from
11 changes: 11 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,19 @@ coverage:
status:
project:
default:
<<<<<<< HEAD
threshold: 0.5%
patch:
default:
threshold: 0.5%
=======
target: auto
threshold: 0.5%
patch:
default:
target: auto
threshold: 1%
>>>>>>> master

flag_management:
default_rules:
Expand All @@ -30,8 +37,12 @@ flag_management:
target: auto
threshold: 0.5%
- type: patch
<<<<<<< HEAD
threshold: 0.5%
=======
target: auto
threshold: 1%
>>>>>>> master
individual_flags:
- name: tm2
paths:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gnoland.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: gno.land
flags: gno.land-${{matrix.args}}
flags: gno.land-${{matrix.args}}-${{matrix.go-version}}
files: ./gno.land/coverage.out
fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/gnovm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: gnovm
<<<<<<< HEAD
flags: gnovm-${{matrix.args}}-${{matrix.go-version}}
=======
verbose: true
flags: gnovm-${{matrix.args}}
>>>>>>> master
files: ./gnovm/coverage.out
fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}
4 changes: 4 additions & 0 deletions .github/workflows/tm2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: tm2
<<<<<<< HEAD
flags: tm2-${{matrix.args}}-${{matrix.go-version}}
=======
verbose: true
flags: tm2-${{matrix.args}}
>>>>>>> master
files: ./tm2/coverage.out
fail_ci_if_error: ${{ github.repository == 'gnolang/gno' }}
16 changes: 16 additions & 0 deletions gnovm/pkg/gnolang/alloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,22 @@ type Allocator struct {
// for gonative, which doesn't consider the allocator.
var nilAllocator = (*Allocator)(nil)

func untestedCodeForCI() {
if true {
if true {
if true {
if true {
if true {
if true {
_ = 42
}
}
}
}
}
}
}

const (
// go elemental
_allocBase = 24 // defensive... XXX
Expand Down
Loading