xaynetwork / xayn_architecture Goto Github PK
View Code? Open in Web Editor NEWXayn architecture repository
License: Apache License 2.0
Xayn architecture repository
License: Apache License 2.0
So i found 2 bugs in the use_case
related section, both related to the nullable values:
โ1
_appThemeHandler = consume(_listenAppThemeUseCase, initialData: none);
consume
method receive optional but nullable param initialData
.
the problem comes, when useCase input
is not nullable.
โ2
useCaseTest<ListenAppThemeUseCase, void, AppTheme>(
'WHEN storage emit new value THEN useCase emit it as well',
build: () => useCase,
setUp: () {
controller.add(AppTheme.dark);
controller.close();
},
input: [null],
expect: [useCaseSuccess(AppTheme.dark)],
);
same thing here, but even worse a bit.
input
can receive a list of values. it might be null (as in the example), but the useCase does not accept nullable values.
So in the current setup error will be swallowed by some internal try/catch (probably line 92, use_case_test.dart) and never returned,
The test continues to execute (transaction never called properly cos of the null value) and as result - timeout exception comes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.