Skip to content

Commit

Permalink
More test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rylev committed Feb 16, 2022
1 parent c39bc4f commit cb6d0f8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 184 deletions.
28 changes: 16 additions & 12 deletions crates/libs/interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use syn::spanned::Spanned;
/// A COM interface definition
///
/// # Example
/// ```rust
/// ```rust,ignore
/// #[windows_interface::interface("8CEEB155-2849-4ce5-9448-91FF70E1E4D9")]
/// unsafe trait IUIAnimationVariable: IUnknown {
/// fn GetValue(&self, value: *mut f64) -> HRESULT;
Expand Down Expand Up @@ -46,10 +46,12 @@ macro_rules! expected_token {

/// Parsed interface
///
/// ```rust
/// #[windows_interface::interface("0000010c-0000-0000-C000-000000000046")]
/// unsafe trait IFoo {}
/// ```rust,ignore
/// #[windows_interface::interface("8CEEB155-2849-4ce5-9448-91FF70E1E4D9")]
/// unsafe trait IUIAnimationVariable: IUnknown {
/// //^ parses this
/// fn GetValue(&self, value: *mut f64) -> HRESULT;
/// }
/// ```
struct Interface {
pub visibility: syn::Visibility,
Expand Down Expand Up @@ -310,10 +312,12 @@ impl Parse for Interface {

/// Parsed interface guid attribute
///
/// ```rust
/// #[windows_interface::interface("0000010c-0000-0000-C000-000000000046")]
/// //^ parses this
/// unsafe trait IFoo {}
/// ```rust,ignore
/// #[windows_interface::interface("8CEEB155-2849-4ce5-9448-91FF70E1E4D9")]
/// //^ parses this
/// unsafe trait IUIAnimationVariable: IUnknown {
/// fn GetValue(&self, value: *mut f64) -> HRESULT;
/// }
/// ```
struct Guid(syn::LitStr);

Expand Down Expand Up @@ -388,11 +392,11 @@ impl Parse for Guid {

/// A parsed interface method
///
/// ```rust
/// #[windows_interface::interface("0000010c-0000-0000-C000-000000000046")]
/// unsafe trait IFoo {
/// ```rust,ignore
/// #[windows_interface::interface("8CEEB155-2849-4ce5-9448-91FF70E1E4D9")]
/// unsafe trait IUIAnimationVariable: IUnknown {
/// fn GetValue(&self, value: *mut f64) -> HRESULT;
/// //^ parses this
/// //^ parses this
/// }
/// ```
struct InterfaceMethod {
Expand Down
15 changes: 0 additions & 15 deletions crates/tests/interface/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion crates/tests/interface/src/lib.rs

This file was deleted.

156 changes: 0 additions & 156 deletions crates/tests/interface/tests/com.rs

This file was deleted.

0 comments on commit cb6d0f8

Please sign in to comment.