Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

calculate number of imported funcs #193

Merged
merged 2 commits into from
Apr 18, 2020
Merged

calculate number of imported funcs #193

merged 2 commits into from
Apr 18, 2020

Conversation

zhangzhiqiangcs
Copy link
Contributor

Hi, I read the bug in #190
The problem is that when providing a nil imported object, the len(FunctionIndexSpace) is not equal to the number of imported funcs.
So I calculate it. I don't know if we can do it this way.
Thanks.

Copy link
Contributor

@sbinet sbinet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks.

could you add a small test for this?

wasm/index.go Show resolved Hide resolved
@codecov-io
Copy link

codecov-io commented Apr 18, 2020

Codecov Report

Merging #193 into master will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #193      +/-   ##
==========================================
+ Coverage   69.03%   69.05%   +0.02%     
==========================================
  Files          51       51              
  Lines        5910     5914       +4     
==========================================
+ Hits         4080     4084       +4     
  Misses       1467     1467              
  Partials      363      363              
Impacted Files Coverage Δ
wasm/index.go 59.61% <100.00%> (+1.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc6758c...5724631. Read the comment docs.

@sbinet sbinet merged commit 1b43961 into go-interpreter:master Apr 18, 2020
@zhangzhiqiangcs zhangzhiqiangcs deleted the calculate-import-funcs branch April 19, 2020 00:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants