()
| 532 | #[tokio::test] |
| 533 | #[expect(clippy::too_many_lines)] |
| 534 | async fn remove_link() { |
| 535 | let alice = serde_json::from_str(entity::PERSON_ALICE_V1).expect("could not parse entity"); |
| 536 | let bob = serde_json::from_str(entity::PERSON_BOB_V1).expect("could not parse entity"); |
| 537 | |
| 538 | let mut database = DatabaseTestWrapper::new().await; |
| 539 | let mut api = database |
| 540 | .seed( |
| 541 | [ |
| 542 | data_type::VALUE_V1, |
| 543 | data_type::TEXT_V1, |
| 544 | data_type::NUMBER_V1, |
| 545 | ], |
| 546 | [ |
| 547 | property_type::NAME_V1, |
| 548 | property_type::AGE_V1, |
| 549 | property_type::FAVORITE_SONG_V1, |
| 550 | property_type::FAVORITE_FILM_V1, |
| 551 | property_type::HOBBY_V1, |
| 552 | property_type::INTERESTS_V1, |
| 553 | ], |
| 554 | [ |
| 555 | entity_type::LINK_V1, |
| 556 | entity_type::link::FRIEND_OF_V1, |
| 557 | entity_type::link::ACQUAINTANCE_OF_V1, |
| 558 | entity_type::PERSON_V1, |
| 559 | ], |
| 560 | ) |
| 561 | .await |
| 562 | .expect("could not seed database"); |
| 563 | |
| 564 | let person_type_id = VersionedUrl { |
| 565 | base_url: BaseUrl::new( |
| 566 | "https://blockprotocol.org/@alice/types/entity-type/person/".to_owned(), |
| 567 | ) |
| 568 | .expect("couldn't construct Base URL"), |
| 569 | version: OntologyTypeVersion { |
| 570 | major: 1, |
| 571 | pre_release: None, |
| 572 | }, |
| 573 | }; |
| 574 | |
| 575 | let friend_link_type_id = VersionedUrl { |
| 576 | base_url: BaseUrl::new( |
| 577 | "https://blockprotocol.org/@alice/types/entity-type/friend-of/".to_owned(), |
| 578 | ) |
| 579 | .expect("couldn't construct Base URL"), |
| 580 | version: OntologyTypeVersion { |
| 581 | major: 1, |
| 582 | pre_release: None, |
| 583 | }, |
| 584 | }; |
| 585 | |
| 586 | let alice_entity = api |
| 587 | .create_entity( |
| 588 | api.account_id, |
| 589 | CreateEntityParams { |
| 590 | web_id: WebId::new(api.account_id), |
| 591 | entity_uuid: None, |
nothing calls this directly
no test coverage detected