From 4a95559a9d89a00ebab9b78ea59413d8a38c4f5b Mon Sep 17 00:00:00 2001 From: Pablo Sichert Date: Fri, 8 Jan 2021 02:56:24 +0100 Subject: [PATCH] Add test for invalid glob --- lib/file-source/tests/glob.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/file-source/tests/glob.rs b/lib/file-source/tests/glob.rs index bdb31582ebd481..2250fc7fdcb6d4 100644 --- a/lib/file-source/tests/glob.rs +++ b/lib/file-source/tests/glob.rs @@ -56,3 +56,14 @@ fn test_glob_include_curly_braces_exclude_star() -> Result<(), Box Result<(), Box> { + let include_patterns = ["{{}".to_owned()]; + let exclude_patterns = []; + let glob = Glob::new(&include_patterns, &exclude_patterns); + + assert!(glob.is_err()); + + Ok(()) +}