From b0c4552475aba61f0fecdd412e06b4e161f4aa39 Mon Sep 17 00:00:00 2001 From: 0x19 Date: Mon, 28 Aug 2023 15:40:51 +0200 Subject: [PATCH] Unit test improvements --- compiler_test.go | 3 +++ releases/releases.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/compiler_test.go b/compiler_test.go index 51d9bd4..7fb7320 100644 --- a/compiler_test.go +++ b/compiler_test.go @@ -564,10 +564,13 @@ func TestCompilerWithJSON(t *testing.T) { assert.NotNil(t, compilerResults) for _, result := range compilerResults { + assert.NotNil(t, result.IsEntry()) assert.NotEmpty(t, result.GetRequestedVersion()) assert.NotEmpty(t, result.GetBytecode()) assert.NotEmpty(t, result.GetABI()) assert.NotEmpty(t, result.GetContractName()) + assert.NotEmpty(t, result.GetOpcodes()) + assert.NotEmpty(t, result.GetMetadata()) assert.GreaterOrEqual(t, len(result.GetWarnings()), 0) assert.GreaterOrEqual(t, len(result.GetErrors()), 0) } diff --git a/releases/releases.json b/releases/releases.json index 90ad7ce..f91da30 100644 --- a/releases/releases.json +++ b/releases/releases.json @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7bf7e15c096f56db434942f2ed506b3364d7841d42cdbc3dc4a7238987e0a020 +oid sha256:5a38260c77847cc55559f6e22067314c6ef004a7564087ac338b43e9fde3adf3 size 965666