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

Support some language construct to be able to access private things from unit tests #10219

Closed
DartBot opened this issue Apr 26, 2013 · 4 comments
Assignees
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-duplicate Closed in favor of an existing report

Comments

@DartBot
Copy link

DartBot commented Apr 26, 2013

This issue was originally filed by izaer...@gmail.com


Currently we need to do some hacks to be able to see private things in libraries from unit tests. It's all discussed in this thread:

https://groups.google.com/a/dartlang.org/forum/?fromgroups=#!topic/misc/0A0YnNILsDU

We have some hacks to be able to do it, but it would be wise to add some feature to the language so that we can do it in a clean way.

I would suggest something like being able to add a fragment on top of an existing library (similar to OSGi fragments) or a keyword similar to C++'s "friend".

@kasperl
Copy link

kasperl commented Apr 29, 2013

Added Area-Language, Triaged labels.

@DartBot
Copy link
Author

DartBot commented May 17, 2013

This comment was originally written by ross.dart...@gmail.com


In .NET this is done w/ an annotation instead of a keyword:

http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.internalsvisibletoattribute.aspx

@gbracha
Copy link
Contributor

gbracha commented Aug 25, 2014

Set owner to @gbracha.
Added Accepted label.

@gbracha
Copy link
Contributor

gbracha commented Jan 3, 2015

Added Duplicate label.
Marked as being merged into #1882.

@DartBot DartBot added Type-Defect area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-duplicate Closed in favor of an existing report labels Jan 3, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

3 participants