Skip to content

Commit

Permalink
Annotate existing provider test w/ relevant spec
Browse files Browse the repository at this point in the history
  • Loading branch information
justinabrahms committed Sep 7, 2023
1 parent 56331a1 commit d10f4f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ mod tests {

use super::*;
use crate::provider::*;
use spec::spec;

impl OpenFeature {
pub fn new<T: FeatureProvider>(provider: T, evaluation_context: EvaluationContext) -> Self {
Expand All @@ -69,6 +70,7 @@ mod tests {
}

#[tokio::test]
#[spec(number="1.1.2.1",text="The API MUST define a provider mutator, a function to set the default provider, which accepts an API-conformant provider implementation.")]
async fn set_provider() {
let provider = FixedValueProvider::builder().bool_value(true).build();

Expand Down

0 comments on commit d10f4f6

Please sign in to comment.