repo_description: A fast and powerful log viewer and processor that converts JSON logs or logfmt logs into a clear human-readable format.
repo_topics: cli command-line-tool hl human json json-log json-logging json-logs log log-viewer logfmt logging logs rust structured-logging translates-json-logs viewer
code: use super::*;
  
  #[test]
  fn test_highlight() {
      assert_eq!("hello".hl().to_string(), "\u{1b}[33mhello\u{1b}[0m");
      assert_eq!(Path::new("hello").hl().to_string(), "\u{1b}[33mhello\u{1b}[0m");
      assert_eq!("hello".hlq().to_string(), "\u{1b}[33m\"hello\"\u{1b}[0m");
      assert_eq!(Path::new("hello").hlq().to_string(), "\u{1b}[33m\"hello\"\u{1b}[0m");
  }
  