Extend issue-81141-private-reexport-in-public-api test to cover more cases
This commit is contained in:
parent
078e902952
commit
278d15c254
@ -32,3 +32,83 @@ pub fn bar2() -> Whatever3 {
|
||||
pub fn bar3() -> Whatever4 {
|
||||
Whatever
|
||||
}
|
||||
|
||||
// @has 'foo/fn.bar4.html'
|
||||
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar4() -> Bar'
|
||||
pub fn bar4() -> crate::Alias {
|
||||
Alias
|
||||
}
|
||||
|
||||
// @has 'foo/fn.bar5.html'
|
||||
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar5() -> Whatever'
|
||||
pub fn bar5() -> crate::Whatever3 {
|
||||
Whatever
|
||||
}
|
||||
|
||||
// @has 'foo/fn.bar6.html'
|
||||
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar6() -> Whatever4'
|
||||
pub fn bar6() -> crate::Whatever4 {
|
||||
Whatever
|
||||
}
|
||||
|
||||
|
||||
// @has 'foo/fn.bar7.html'
|
||||
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar7() -> Bar'
|
||||
pub fn bar7() -> self::Alias {
|
||||
Alias
|
||||
}
|
||||
|
||||
// @has 'foo/fn.bar8.html'
|
||||
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar8() -> Whatever'
|
||||
pub fn bar8() -> self::Whatever3 {
|
||||
Whatever
|
||||
}
|
||||
|
||||
// @has 'foo/fn.bar9.html'
|
||||
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar9() -> Whatever4'
|
||||
pub fn bar9() -> self::Whatever4 {
|
||||
Whatever
|
||||
}
|
||||
|
||||
mod nested {
|
||||
pub(crate) use crate::Alias;
|
||||
pub(crate) use crate::Whatever3;
|
||||
pub(crate) use crate::Whatever4;
|
||||
pub(crate) use crate::nested as nested2;
|
||||
}
|
||||
|
||||
// @has 'foo/fn.bar10.html'
|
||||
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar10() -> Bar'
|
||||
pub fn bar10() -> nested::Alias {
|
||||
Alias
|
||||
}
|
||||
|
||||
// @has 'foo/fn.bar11.html'
|
||||
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar11() -> Whatever'
|
||||
pub fn bar11() -> nested::Whatever3 {
|
||||
Whatever
|
||||
}
|
||||
|
||||
// @has 'foo/fn.bar12.html'
|
||||
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar12() -> Whatever4'
|
||||
pub fn bar12() -> nested::Whatever4 {
|
||||
Whatever
|
||||
}
|
||||
|
||||
// @has 'foo/fn.bar13.html'
|
||||
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar13() -> Bar'
|
||||
pub fn bar13() -> nested::nested2::Alias {
|
||||
Alias
|
||||
}
|
||||
|
||||
// @has 'foo/fn.bar14.html'
|
||||
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar14() -> Whatever'
|
||||
pub fn bar14() -> nested::nested2::Whatever3 {
|
||||
Whatever
|
||||
}
|
||||
|
||||
// @has 'foo/fn.bar15.html'
|
||||
// @has - '//*[@class="rust item-decl"]/code' 'pub fn bar15() -> Whatever4'
|
||||
pub fn bar15() -> nested::nested2::Whatever4 {
|
||||
Whatever
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user