From c0972ad2ba20d4c067c2f60cd4e6c5499363b782 Mon Sep 17 00:00:00 2001 From: Ming-Wei Shih Date: Thu, 9 Feb 2023 19:26:54 +0000 Subject: [PATCH] Update license to MIT Signed-off-by: Ming-Wei Shih --- build.rs | 5 +++-- scripts/coverage | 4 ++-- scripts/make-docs | 4 ++-- scripts/pre-commit | 4 ++-- scripts/pre-push | 4 ++-- scripts/rego-eval | 4 ++-- scripts/rego-lex | 4 ++-- scripts/rego-parse | 4 ++-- scripts/yaml-test-eval | 4 ++-- scripts/yaml-test-parse | 4 ++-- src/ast.rs | 4 ++-- src/builtins/compare.rs | 3 +++ src/builtins/mod.rs | 3 +++ src/interpreter.rs | 5 +++-- src/lexer.rs | 4 ++-- src/lib.rs | 4 ++-- src/parser.rs | 4 ++-- src/value.rs | 4 ++-- tests/interpreter/cases/arithmetic/mod.rs | 5 +++-- tests/interpreter/cases/basic_001.yaml | 4 ++-- tests/interpreter/cases/builtins/compare.yaml | 4 ++-- tests/interpreter/cases/call/basic.yaml | 3 +++ tests/interpreter/cases/compr/array-vs-compr-tricky.yaml | 4 ++-- tests/interpreter/cases/compr/mod.rs | 4 ++-- tests/interpreter/cases/compr/object.yaml | 4 ++-- tests/interpreter/cases/default/basic.yaml | 4 ++-- tests/interpreter/cases/in/mod.rs | 5 +++-- tests/interpreter/cases/mod.rs | 4 ++-- tests/interpreter/cases/rule/contains.yaml | 4 ++-- tests/interpreter/cases/rule/object.yaml | 4 ++-- tests/interpreter/cases/rule/old_set.yaml | 4 ++-- tests/interpreter/cases/variables/basic.yaml | 4 ++-- tests/interpreter/cases/variables/mod.rs | 4 ++-- tests/interpreter/mod.rs | 5 +++-- tests/lexer/cases/all.yaml | 4 ++-- tests/lexer/cases/boolean.yaml | 4 ++-- tests/lexer/cases/comment.yaml | 4 ++-- tests/lexer/cases/eof.yaml | 4 ++-- tests/lexer/cases/identifier.yaml | 4 ++-- tests/lexer/cases/newline.yaml | 4 ++-- tests/lexer/cases/number.yaml | 4 ++-- tests/lexer/cases/rawstring.yaml | 4 ++-- tests/lexer/cases/string.yaml | 4 ++-- tests/lexer/cases/symbol.yaml | 4 ++-- tests/lexer/cases/whitespace.yaml | 4 ++-- tests/lexer/mod.rs | 3 +++ tests/parser/cases/every/every.yaml | 4 ++-- tests/parser/cases/expressions/arithmetic.yaml | 4 ++-- tests/parser/cases/expressions/array-compr.yaml | 4 ++-- tests/parser/cases/expressions/array.yaml | 4 ++-- tests/parser/cases/expressions/bin.yaml | 4 ++-- tests/parser/cases/expressions/bool.yaml | 4 ++-- tests/parser/cases/expressions/call.yaml | 4 ++-- tests/parser/cases/expressions/in.yaml | 4 ++-- tests/parser/cases/expressions/membership.yaml | 4 ++-- tests/parser/cases/expressions/object.yaml | 4 ++-- tests/parser/cases/expressions/set-compr.yaml | 4 ++-- tests/parser/cases/expressions/set.yaml | 4 ++-- tests/parser/cases/import/future.yaml | 4 ++-- tests/parser/cases/import/import.yaml | 4 ++-- tests/parser/cases/package/package.yaml | 4 ++-- tests/parser/cases/rules/basic.yaml | 4 ++-- tests/parser/cases/rules/else.yaml | 4 ++-- tests/parser/cases/rules/set.yaml | 4 ++-- tests/parser/cases/some/some.in.yaml | 4 ++-- tests/parser/cases/some/some.vars.yaml | 4 ++-- tests/parser/mod.rs | 5 +++-- tests/tests.rs | 4 ++-- tests/value/mod.rs | 5 +++-- 69 files changed, 149 insertions(+), 130 deletions(-) diff --git a/build.rs b/build.rs index 02bcc5e..5cce5a3 100644 --- a/build.rs +++ b/build.rs @@ -1,5 +1,6 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + use anyhow::Result; fn main() -> Result<()> { diff --git a/scripts/coverage b/scripts/coverage index 458f898..5564c1b 100755 --- a/scripts/coverage +++ b/scripts/coverage @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. set -e diff --git a/scripts/make-docs b/scripts/make-docs index b8ace5a..389a35f 100755 --- a/scripts/make-docs +++ b/scripts/make-docs @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. git stash cargo doc --no-deps diff --git a/scripts/pre-commit b/scripts/pre-commit index 0897847..bcea321 100755 --- a/scripts/pre-commit +++ b/scripts/pre-commit @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. set -eo pipefail diff --git a/scripts/pre-push b/scripts/pre-push index e851671..439a4c0 100755 --- a/scripts/pre-push +++ b/scripts/pre-push @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. set -eo pipefail diff --git a/scripts/rego-eval b/scripts/rego-eval index 1883402..ebf4326 100755 --- a/scripts/rego-eval +++ b/scripts/rego-eval @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. set -e rego=$(realpath -e $1) diff --git a/scripts/rego-lex b/scripts/rego-lex index d08296e..1c7175a 100755 --- a/scripts/rego-lex +++ b/scripts/rego-lex @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. set -e diff --git a/scripts/rego-parse b/scripts/rego-parse index b4d0e2f..533b6c0 100755 --- a/scripts/rego-parse +++ b/scripts/rego-parse @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. set -e diff --git a/scripts/yaml-test-eval b/scripts/yaml-test-eval index 80aff37..7bc185c 100755 --- a/scripts/yaml-test-eval +++ b/scripts/yaml-test-eval @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. set -e yaml=$(realpath -e $1) diff --git a/scripts/yaml-test-parse b/scripts/yaml-test-parse index ca10ffe..d14213e 100755 --- a/scripts/yaml-test-parse +++ b/scripts/yaml-test-parse @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. set -e yaml=$(realpath -e $1) diff --git a/src/ast.rs b/src/ast.rs index 141b791..3d86217 100644 --- a/src/ast.rs +++ b/src/ast.rs @@ -1,5 +1,5 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. use crate::lexer::*; diff --git a/src/builtins/compare.rs b/src/builtins/compare.rs index 8860240..747b4b5 100644 --- a/src/builtins/compare.rs +++ b/src/builtins/compare.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + use crate::ast::*; use crate::value::{Value::*, *}; diff --git a/src/builtins/mod.rs b/src/builtins/mod.rs index 04b9eaf..824402e 100644 --- a/src/builtins/mod.rs +++ b/src/builtins/mod.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + mod compare; pub use self::compare::*; diff --git a/src/interpreter.rs b/src/interpreter.rs index b2c28dd..d6274d9 100644 --- a/src/interpreter.rs +++ b/src/interpreter.rs @@ -1,5 +1,6 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + use crate::ast::*; use crate::builtins; use crate::lexer::Span; diff --git a/src/lexer.rs b/src/lexer.rs index 100e431..3d58624 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -1,5 +1,5 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. use core::fmt::{Debug, Formatter}; use core::iter::Peekable; diff --git a/src/lib.rs b/src/lib.rs index 186d3d3..b889378 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. pub mod ast; pub mod builtins; diff --git a/src/parser.rs b/src/parser.rs index f60f600..ee64a3b 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1,5 +1,5 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. use crate::ast::*; use crate::lexer::*; diff --git a/src/value.rs b/src/value.rs index 9f82bb9..6be6926 100644 --- a/src/value.rs +++ b/src/value.rs @@ -1,5 +1,5 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. use core::fmt; use std::collections::{BTreeMap, BTreeSet}; diff --git a/tests/interpreter/cases/arithmetic/mod.rs b/tests/interpreter/cases/arithmetic/mod.rs index 079652e..8ec3fed 100644 --- a/tests/interpreter/cases/arithmetic/mod.rs +++ b/tests/interpreter/cases/arithmetic/mod.rs @@ -1,5 +1,6 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #![cfg(test)] use crate::interpreter::*; diff --git a/tests/interpreter/cases/basic_001.yaml b/tests/interpreter/cases/basic_001.yaml index dd66376..3b9b762 100644 --- a/tests/interpreter/cases/basic_001.yaml +++ b/tests/interpreter/cases/basic_001.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - data: {} modules: diff --git a/tests/interpreter/cases/builtins/compare.yaml b/tests/interpreter/cases/builtins/compare.yaml index eedb7fd..b1b7798 100644 --- a/tests/interpreter/cases/builtins/compare.yaml +++ b/tests/interpreter/cases/builtins/compare.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: number-equals diff --git a/tests/interpreter/cases/call/basic.yaml b/tests/interpreter/cases/call/basic.yaml index 0c7f8b9..70a07bf 100644 --- a/tests/interpreter/cases/call/basic.yaml +++ b/tests/interpreter/cases/call/basic.yaml @@ -1,3 +1,6 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + cases: - note: basic data: {} diff --git a/tests/interpreter/cases/compr/array-vs-compr-tricky.yaml b/tests/interpreter/cases/compr/array-vs-compr-tricky.yaml index af4b197..94a9856 100644 --- a/tests/interpreter/cases/compr/array-vs-compr-tricky.yaml +++ b/tests/interpreter/cases/compr/array-vs-compr-tricky.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. # Captures tricky cases where similar looking expressions will be # treated as arrays or array-comprs. diff --git a/tests/interpreter/cases/compr/mod.rs b/tests/interpreter/cases/compr/mod.rs index 669dfda..818dcbc 100644 --- a/tests/interpreter/cases/compr/mod.rs +++ b/tests/interpreter/cases/compr/mod.rs @@ -1,5 +1,5 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. #![cfg(test)] use crate::interpreter::*; diff --git a/tests/interpreter/cases/compr/object.yaml b/tests/interpreter/cases/compr/object.yaml index 52506cd..7366030 100644 --- a/tests/interpreter/cases/compr/object.yaml +++ b/tests/interpreter/cases/compr/object.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: simple diff --git a/tests/interpreter/cases/default/basic.yaml b/tests/interpreter/cases/default/basic.yaml index 227fe61..b3a9c5a 100644 --- a/tests/interpreter/cases/default/basic.yaml +++ b/tests/interpreter/cases/default/basic.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: basic diff --git a/tests/interpreter/cases/in/mod.rs b/tests/interpreter/cases/in/mod.rs index f624959..5ac756e 100644 --- a/tests/interpreter/cases/in/mod.rs +++ b/tests/interpreter/cases/in/mod.rs @@ -1,5 +1,6 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #![cfg(test)] use crate::interpreter::*; diff --git a/tests/interpreter/cases/mod.rs b/tests/interpreter/cases/mod.rs index c035f6d..44c7283 100644 --- a/tests/interpreter/cases/mod.rs +++ b/tests/interpreter/cases/mod.rs @@ -1,5 +1,5 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. mod arithmetic; mod compr; diff --git a/tests/interpreter/cases/rule/contains.yaml b/tests/interpreter/cases/rule/contains.yaml index 3471080..c3a7668 100644 --- a/tests/interpreter/cases/rule/contains.yaml +++ b/tests/interpreter/cases/rule/contains.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: simple diff --git a/tests/interpreter/cases/rule/object.yaml b/tests/interpreter/cases/rule/object.yaml index 46edbfe..d04d22a 100644 --- a/tests/interpreter/cases/rule/object.yaml +++ b/tests/interpreter/cases/rule/object.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: simple diff --git a/tests/interpreter/cases/rule/old_set.yaml b/tests/interpreter/cases/rule/old_set.yaml index e747999..86f64f8 100644 --- a/tests/interpreter/cases/rule/old_set.yaml +++ b/tests/interpreter/cases/rule/old_set.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: index-syntax diff --git a/tests/interpreter/cases/variables/basic.yaml b/tests/interpreter/cases/variables/basic.yaml index 5d8c849..049540c 100644 --- a/tests/interpreter/cases/variables/basic.yaml +++ b/tests/interpreter/cases/variables/basic.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: basic diff --git a/tests/interpreter/cases/variables/mod.rs b/tests/interpreter/cases/variables/mod.rs index 5cfcd5f..3f0e924 100644 --- a/tests/interpreter/cases/variables/mod.rs +++ b/tests/interpreter/cases/variables/mod.rs @@ -1,5 +1,5 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. #![cfg(test)] use crate::interpreter::*; diff --git a/tests/interpreter/mod.rs b/tests/interpreter/mod.rs index e07cecd..12a2a61 100644 --- a/tests/interpreter/mod.rs +++ b/tests/interpreter/mod.rs @@ -1,5 +1,6 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #![cfg(test)] use std::env; diff --git a/tests/lexer/cases/all.yaml b/tests/lexer/cases/all.yaml index 670160b..1c4e28f 100644 --- a/tests/lexer/cases/all.yaml +++ b/tests/lexer/cases/all.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - rego: | diff --git a/tests/lexer/cases/boolean.yaml b/tests/lexer/cases/boolean.yaml index 51a5553..9c790f6 100644 --- a/tests/lexer/cases/boolean.yaml +++ b/tests/lexer/cases/boolean.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: # To Booleans are parsed as identifiers. diff --git a/tests/lexer/cases/comment.yaml b/tests/lexer/cases/comment.yaml index 7c8dda4..0ec359d 100644 --- a/tests/lexer/cases/comment.yaml +++ b/tests/lexer/cases/comment.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: comments-immediately-following/1 diff --git a/tests/lexer/cases/eof.yaml b/tests/lexer/cases/eof.yaml index b0240e8..52d1e33 100644 --- a/tests/lexer/cases/eof.yaml +++ b/tests/lexer/cases/eof.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: # All other yamls lock down eof. diff --git a/tests/lexer/cases/identifier.yaml b/tests/lexer/cases/identifier.yaml index 138227a..4b38cf1 100644 --- a/tests/lexer/cases/identifier.yaml +++ b/tests/lexer/cases/identifier.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: all diff --git a/tests/lexer/cases/newline.yaml b/tests/lexer/cases/newline.yaml index 6a2709f..d668d2f 100644 --- a/tests/lexer/cases/newline.yaml +++ b/tests/lexer/cases/newline.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: carriage-return/ok diff --git a/tests/lexer/cases/number.yaml b/tests/lexer/cases/number.yaml index 23ed8f5..d815398 100644 --- a/tests/lexer/cases/number.yaml +++ b/tests/lexer/cases/number.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: # Valid integers diff --git a/tests/lexer/cases/rawstring.yaml b/tests/lexer/cases/rawstring.yaml index 2f227a3..b055ad7 100644 --- a/tests/lexer/cases/rawstring.yaml +++ b/tests/lexer/cases/rawstring.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: positive diff --git a/tests/lexer/cases/string.yaml b/tests/lexer/cases/string.yaml index f87d649..38739d8 100644 --- a/tests/lexer/cases/string.yaml +++ b/tests/lexer/cases/string.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: positive diff --git a/tests/lexer/cases/symbol.yaml b/tests/lexer/cases/symbol.yaml index 93b9751..81b5efe 100644 --- a/tests/lexer/cases/symbol.yaml +++ b/tests/lexer/cases/symbol.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: # Two single char symbols in a row must be parsed correctly. diff --git a/tests/lexer/cases/whitespace.yaml b/tests/lexer/cases/whitespace.yaml index 12a1059..8d616fc 100644 --- a/tests/lexer/cases/whitespace.yaml +++ b/tests/lexer/cases/whitespace.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: valid diff --git a/tests/lexer/mod.rs b/tests/lexer/mod.rs index 63ead06..eebc11a 100644 --- a/tests/lexer/mod.rs +++ b/tests/lexer/mod.rs @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #![cfg(test)] use anyhow::{bail, Result}; diff --git a/tests/parser/cases/every/every.yaml b/tests/parser/cases/every/every.yaml index d252e2f..50a7075 100644 --- a/tests/parser/cases/every/every.yaml +++ b/tests/parser/cases/every/every.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: basic diff --git a/tests/parser/cases/expressions/arithmetic.yaml b/tests/parser/cases/expressions/arithmetic.yaml index d8b7a17..483178f 100644 --- a/tests/parser/cases/expressions/arithmetic.yaml +++ b/tests/parser/cases/expressions/arithmetic.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: basic diff --git a/tests/parser/cases/expressions/array-compr.yaml b/tests/parser/cases/expressions/array-compr.yaml index 637bf28..14619d3 100644 --- a/tests/parser/cases/expressions/array-compr.yaml +++ b/tests/parser/cases/expressions/array-compr.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: case1-compr diff --git a/tests/parser/cases/expressions/array.yaml b/tests/parser/cases/expressions/array.yaml index ae9260f..bcd8445 100644 --- a/tests/parser/cases/expressions/array.yaml +++ b/tests/parser/cases/expressions/array.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: all diff --git a/tests/parser/cases/expressions/bin.yaml b/tests/parser/cases/expressions/bin.yaml index 08fe6a2..c1aa024 100644 --- a/tests/parser/cases/expressions/bin.yaml +++ b/tests/parser/cases/expressions/bin.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: basic diff --git a/tests/parser/cases/expressions/bool.yaml b/tests/parser/cases/expressions/bool.yaml index 2b56f67..4ae5503 100644 --- a/tests/parser/cases/expressions/bool.yaml +++ b/tests/parser/cases/expressions/bool.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: basic diff --git a/tests/parser/cases/expressions/call.yaml b/tests/parser/cases/expressions/call.yaml index 112db6c..52983e9 100644 --- a/tests/parser/cases/expressions/call.yaml +++ b/tests/parser/cases/expressions/call.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: basic diff --git a/tests/parser/cases/expressions/in.yaml b/tests/parser/cases/expressions/in.yaml index 82b9b71..887e946 100644 --- a/tests/parser/cases/expressions/in.yaml +++ b/tests/parser/cases/expressions/in.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: basic diff --git a/tests/parser/cases/expressions/membership.yaml b/tests/parser/cases/expressions/membership.yaml index 24666ba..2d3430a 100644 --- a/tests/parser/cases/expressions/membership.yaml +++ b/tests/parser/cases/expressions/membership.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: basic diff --git a/tests/parser/cases/expressions/object.yaml b/tests/parser/cases/expressions/object.yaml index bb99ea6..7a22bb7 100644 --- a/tests/parser/cases/expressions/object.yaml +++ b/tests/parser/cases/expressions/object.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: all diff --git a/tests/parser/cases/expressions/set-compr.yaml b/tests/parser/cases/expressions/set-compr.yaml index bb24bd5..9e18c4d 100644 --- a/tests/parser/cases/expressions/set-compr.yaml +++ b/tests/parser/cases/expressions/set-compr.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: case1-compr diff --git a/tests/parser/cases/expressions/set.yaml b/tests/parser/cases/expressions/set.yaml index f2fa2a3..0a43242 100644 --- a/tests/parser/cases/expressions/set.yaml +++ b/tests/parser/cases/expressions/set.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: all diff --git a/tests/parser/cases/import/future.yaml b/tests/parser/cases/import/future.yaml index ab798a1..469f661 100644 --- a/tests/parser/cases/import/future.yaml +++ b/tests/parser/cases/import/future.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: namespace diff --git a/tests/parser/cases/import/import.yaml b/tests/parser/cases/import/import.yaml index 091de25..afdc575 100644 --- a/tests/parser/cases/import/import.yaml +++ b/tests/parser/cases/import/import.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: data diff --git a/tests/parser/cases/package/package.yaml b/tests/parser/cases/package/package.yaml index c857c68..a3db674 100644 --- a/tests/parser/cases/package/package.yaml +++ b/tests/parser/cases/package/package.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: single-char diff --git a/tests/parser/cases/rules/basic.yaml b/tests/parser/cases/rules/basic.yaml index 728daca..0025628 100644 --- a/tests/parser/cases/rules/basic.yaml +++ b/tests/parser/cases/rules/basic.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: same-line-no-body diff --git a/tests/parser/cases/rules/else.yaml b/tests/parser/cases/rules/else.yaml index 5001e37..4576045 100644 --- a/tests/parser/cases/rules/else.yaml +++ b/tests/parser/cases/rules/else.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: no-query diff --git a/tests/parser/cases/rules/set.yaml b/tests/parser/cases/rules/set.yaml index f3c230b..9e52a04 100644 --- a/tests/parser/cases/rules/set.yaml +++ b/tests/parser/cases/rules/set.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: contains diff --git a/tests/parser/cases/some/some.in.yaml b/tests/parser/cases/some/some.in.yaml index 02f74ba..6fb783f 100644 --- a/tests/parser/cases/some/some.in.yaml +++ b/tests/parser/cases/some/some.in.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: all diff --git a/tests/parser/cases/some/some.vars.yaml b/tests/parser/cases/some/some.vars.yaml index cbd6374..699b6b9 100644 --- a/tests/parser/cases/some/some.vars.yaml +++ b/tests/parser/cases/some/some.vars.yaml @@ -1,5 +1,5 @@ -# Copyright (c) Rego-Rs Authors. -# Licensed under the Apache 2.0 license. +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. cases: - note: single-multi-vars diff --git a/tests/parser/mod.rs b/tests/parser/mod.rs index 3e005a9..41bad55 100644 --- a/tests/parser/mod.rs +++ b/tests/parser/mod.rs @@ -1,5 +1,6 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #![cfg(test)] use anyhow::{anyhow, bail, Result}; diff --git a/tests/tests.rs b/tests/tests.rs index 3c9218a..3ec840a 100644 --- a/tests/tests.rs +++ b/tests/tests.rs @@ -1,5 +1,5 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. mod interpreter; mod lexer; diff --git a/tests/value/mod.rs b/tests/value/mod.rs index 58718d6..f70fe6c 100644 --- a/tests/value/mod.rs +++ b/tests/value/mod.rs @@ -1,5 +1,6 @@ -// Copyright (c) Rego-Rs Authors. -// Licensed under the Apache 2.0 license. +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + #![cfg(test)] use anyhow::Result;