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

Unit tests for IO, Cryptography, Wallets and VM modules #943

Merged
merged 169 commits into from
Jul 26, 2019
Merged

Unit tests for IO, Cryptography, Wallets and VM modules #943

merged 169 commits into from
Jul 26, 2019

Conversation

eryeer
Copy link
Contributor

@eryeer eryeer commented Jul 22, 2019

Here is the unit tests mostly for IO, Cryptography and Wallets modules. We adjusted the code directory and the namespace by the way.

vncoelho
vncoelho previously approved these changes Jul 22, 2019
Copy link
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

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

@erikzhang, I took a look at the general aspect of it.

In my opinion, it is ok to be merged.
I think that the parts that the UTs are covering are not going to put many barriers on what we still need to implement and modify for NEO3.

But I think that the final decision before merging needs, at least, the approval of you, @shargon and @igormcoelho.

@eryeer
Copy link
Contributor Author

eryeer commented Jul 23, 2019

Grateful for your patience and efforts to review them~

neo.UnitTests/Cryptography/ECC/UT_ECDsa.cs Outdated Show resolved Hide resolved
neo.UnitTests/Cryptography/UT_BloomFilter.cs Outdated Show resolved Hide resolved
neo.UnitTests/Cryptography/UT_Crypto.cs Show resolved Hide resolved
neo.UnitTests/Cryptography/UT_Cryptography_Helper.cs Outdated Show resolved Hide resolved
neo.UnitTests/Cryptography/UT_Cryptography_Helper.cs Outdated Show resolved Hide resolved
neo.UnitTests/IO/Caching/UT_DataCache.cs Show resolved Hide resolved
neo.UnitTests/IO/Caching/UT_DataCache.cs Outdated Show resolved Hide resolved
neo.UnitTests/IO/Caching/UT_DataCache.cs Show resolved Hide resolved
neo.UnitTests/IO/Json/UT_JString.cs Outdated Show resolved Hide resolved
neo.UnitTests/neo.UnitTests.csproj Outdated Show resolved Hide resolved
@shargon
Copy link
Member

shargon commented Jul 23, 2019

Very nice work, just small things, nothing important

@eryeer
Copy link
Contributor Author

eryeer commented Jul 24, 2019

Done for the modification

@erikzhang erikzhang mentioned this pull request Jul 25, 2019
@Tommo-L
Copy link
Contributor

Tommo-L commented Jul 26, 2019

Could we merge now? 😂 More code on the way.

@shargon shargon merged commit a9f46bc into neo-project:master Jul 26, 2019
@vncoelho
Copy link
Member

Incredible job of all of you! Congratulations.

Thacryba pushed a commit to simplitech/neo that referenced this pull request Feb 17, 2020
Tommo-L pushed a commit to Tommo-L/neo that referenced this pull request Jun 22, 2020
)

* testDemo

* add dll lib

* add dbsnapshot dispose

* test get blocks in levelDBStore

* add levelDBStore test funcs

* fix levelDBStore funcs

* add DbCache addInternal

* differ db path

* space

* fix delete internal test

* add test getInternal tryGetInternal move libleveldb.dll

* add dbCache method test

* add store test

* add cache unit tests

* add cache unit tests

* up readonly max_capacity

* fix leveldbexception

* fix comment on UT_Cache

* format

* fix multithread test problem

* up cache

* update travis config

* update travis.yml

* test DbMetaDataCache

* fix db directory

* format and update travis for maxos

* fix mac env travis

* 2019/7/12 10:34

* 2019/7/12 11:01

* remove commented line

* test BigDecimal

* fix format and csproj

* rm  coverage.opencover.xml

* update method name

* add UT_P_Helper

* modify UT_P_Helper

* modify UT_P_helper

* Clean ut

* test Base58 & BloomFilter

* Update UT_Cache.cs

* Correct Typo

* test JsonArray

* update namespace

* update namespace

* update format

* update format

* organise folder structure

* add UT_JString

* test JBoolean JNumber & JObject

* 2019/7/16 10:30

add some test case for UInt32Wrapper and SerializableWrapper

* fix timestamp

* test ECDsa and Crypto

* test OrderedDictionary & complete IO.Json tests

* 2019/7/16 17:33

add some test case of SQLiteWallet

* test FIFOSet

* add CloneCache and DataCache unit tests

* fix namespace

* add UT_Cryptography_Helper

* format UT_CloneCache and UT_DataCache

* add UT_DataCache.GetAndChange unit test

* update namespace

* remove comment code

* delete Persistence part

* 2019/7/19 11:07

add some test case for Helper in VM

* Fix Base58 Test

* 2019/7/19 11:33

change some format

* update IOHelper exception assert

* 2019/7/19 14:22

change format

* format IOHelper

* review IO.Wrapper

* review Wallets.SQLite UT

* Test ECFieldElement ECPoint

* refactor package

* format ECDsa

* update namespace

* Code fix

* review cache

* modify UT_JString

* fomat

* using Actin replace with try-catch

* add UT_CloneMetaCache and UT_MetaDataCache

* update namespace

* format UT_DataCache.cs

* Code Fix

* format

* update csproj

* Code fix for UT_ECFieldElement and UT_ECPoint

* Code fix

* format

* update travis

* delete deleteFiles

* fix path and comment

* update travis

* delete test ToTimeStamp

* format UT_*Cache

* update format

* fomat

* use hex extensions in Cryptography_Helper

* remove reflection

* optimization of UT_DataCache

* update namespace

* modify TestSha256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants