MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / test_disable_cache

Function test_disable_cache

css-inline/tests/test_inlining.rs:1257–1268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1255#[test]
1256#[cfg(feature = "stylesheet-cache")]
1257fn test_disable_cache() {
1258 use std::num::NonZeroUsize;
1259
1260 let inliner = CSSInliner::options()
1261 .cache(css_inline::StylesheetCache::new(
1262 NonZeroUsize::new(3).unwrap(),
1263 ))
1264 .cache(None)
1265 .build();
1266 let debug = format!("{inliner:?}");
1267 assert_eq!(debug, "CSSInliner { options: InlineOptions { inline_style_tags: true, keep_style_tags: false, keep_link_tags: false, base_url: None, load_remote_stylesheets: true, cache: None, extra_css: None, preallocate_node_capacity: 32, remove_inlined_selectors: false, apply_width_attributes: false, apply_height_attributes: false, .. } }");
1268}
1269
1270#[test]
1271fn test_resolver_without_implementation() {

Callers

nothing calls this directly

Calls 2

cacheMethod · 0.80
buildMethod · 0.45

Tested by

no test coverage detected