MCPcopy Create free account
hub / github.com/daipendency/daipendency / namespaces

Function namespaces

src/library.rs:154–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152
153 #[test]
154 fn namespaces() {
155 let (library_path, _temp_dir) = create_temp_library(Some(STUB_VERSION.to_string()));
156
157 let library = Library::load(&library_path, Some(Language::Rust)).unwrap();
158
159 assert_eq!(library.namespaces.len(), 1);
160 let namespace = &library.namespaces[0];
161 assert_eq!(namespace.name, STUB_NAME);
162 assert_eq!(namespace.symbols.len(), 1);
163 assert_eq!(namespace.symbols[0].name, "TestEnum");
164 }
165
166 #[test]
167 fn language_present() {

Callers

nothing calls this directly

Calls 1

create_temp_libraryFunction · 0.85

Tested by

no test coverage detected