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

Bugs/fix 2487 allow contains whitespaces #2498

Merged

Conversation

JKamsker
Copy link
Collaborator

@JKamsker JKamsker commented Jun 6, 2024

Fixes #2487 and contains a minor perf improvement

@JKamsker JKamsker requested a review from pictos June 6, 2024 22:09
@pictos
Copy link
Collaborator

pictos commented Jun 7, 2024

@JKamsker we do have a failing build, can you verify the reason?

@JKamsker
Copy link
Collaborator Author

JKamsker commented Jun 7, 2024

@JKamsker we do have a failing build, can you verify the reason?

Debug builds just fine, release doesnt.
Because:

#if DEBUG
[assembly: InternalsVisibleTo("LiteDB.Tests")]
[assembly: InternalsVisibleTo("ConsoleApp1")]
#endif

And CreateEngine in
using var engine = new ConnectionString(":memory:").CreateEngine();

Which is internal

internal ILiteEngine CreateEngine()

@pictos Do you think its safe to remove the #if DEBUG in Constants ? Otherwise we cant test release builds. I Have no idea whats the benefit of InternalsVisibleTo when you cant use it half of the time.

@JKamsker JKamsker requested a review from pictos June 11, 2024 21:26
@mbdavid mbdavid merged commit 3b7cc00 into mbdavid:master Jun 19, 2024
1 check passed
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.

Incorrect argument validation exception
4 participants