MCPcopy Create free account

hub / github.com/archlinux/alpm / functions

Functions1,873 in github.com/archlinux/alpm

Functiontest_source_info_v1_from_file_valid
Test creating SourceInfoV1 from valid file content.
python-alpm/tests/srcinfo/test_source_info_v1.py:21
Functiontest_source_info_v1_from_pkgbuild_file_invalid
Test creating SourceInfoV1 from invalid PKGBUILD file content raises error.
python-alpm/tests/srcinfo/test_source_info_v1.py:48
Functiontest_source_info_v1_from_pkgbuild_file_valid
Test creating SourceInfoV1 from valid PKGBUILD file content.
python-alpm/tests/srcinfo/test_source_info_v1.py:39
Functiontest_source_info_v1_from_string_invalid
Test creating SourceInfoV1 from invalid string content raises error.
python-alpm/tests/srcinfo/test_source_info_v1.py:15
Functiontest_source_info_v1_from_string_valid
Test creating SourceInfoV1 from valid string content.
python-alpm/tests/srcinfo/test_source_info_v1.py:9
Functiontest_source_url_parsing_failure
(#[case] input: &str)
alpm-types/src/url.rs:845
Functiontest_source_url_parsing_success
( #[case] input: &str, #[case] expected_to_string: Option<&str>, #[case] expected: Sou
alpm-types/src/url.rs:813
Functiontest_spdx_license_invalid
Test creating an invalid SPDX license raises error.
python-alpm/tests/types/test_license.py:23
Functiontest_spdx_license_valid
Test creating a valid spdx license.
python-alpm/tests/types/test_license.py:16
Functiontest_str_repr
Test string representation of SourceInfoSchema.
python-alpm/tests/srcinfo/test_schema.py:84
Functiontest_tarball_builder_debug
(#[case] compression_settings: CompressionSettings)
alpm-compress/src/tarball/builder.rs:137
Functiontest_tarball_builder_write_file
( #[case] compression_settings: CompressionSettings, )
alpm-compress/src/tarball/builder.rs:112
Functiontest_tarball_reader_roundtrip_read_entry
( #[case] extension: String, #[case] compression_settings: CompressionSettings, test_d
alpm-compress/src/tarball/reader.rs:346
Functiontest_type_aliases_imports
Test that all type aliases can be imported without errors.
python-alpm/tests/test_alpm_imports.py:10
Functiontest_unknown_architecture_eq_ord_hash
Test presence of eq, ord and hash methods on UnknownArchitecture.
python-alpm/tests/types/test_system.py:200
Functiontest_unknown_architecture_repr
Test UnknownArchitecture repr.
python-alpm/tests/types/test_system.py:192
Functiontest_unknown_architecture_str
Test UnknownArchitecture string representation.
python-alpm/tests/types/test_system.py:184
Functiontest_unknown_architecture_value
Test UnknownArchitecture.value property.
python-alpm/tests/types/test_system.py:176
Functiontest_url_equality
Test URL equality.
python-alpm/tests/types/test_url.py:25
Functiontest_url_frozen
Test that URL is frozen (immutable).
python-alpm/tests/types/test_url.py:40
Functiontest_url_inequality
Test URL inequality.
python-alpm/tests/types/test_url.py:33
Functiontest_url_invalid
Test URL error handling for invalid URLs.
python-alpm/tests/types/test_url.py:48
Functiontest_url_parsing
(#[case] input: &str, #[case] expected: Result<&str, Error>)
alpm-types/src/url.rs:719
Functiontest_url_valid
Test creating a valid HTTP URL.
python-alpm/tests/types/test_url.py:19
Functiontest_version_comparison_equality
Test VersionComparison equality.
python-alpm/tests/types/test_version.py:191
Functiontest_version_comparison_from_str_invalid
Test creating VersionComparison from invalid string raises error.
python-alpm/tests/types/test_version.py:185
Functiontest_version_comparison_from_str_valid
Test creating VersionComparison from valid string.
python-alpm/tests/types/test_version.py:165
Functiontest_version_comparison_inequality
Test VersionComparison inequality.
python-alpm/tests/types/test_version.py:198
Functiontest_version_consistency
Test that schema versions are consistent across different creation methods.
python-alpm/tests/srcinfo/test_schema.py:92
Functiontest_version_from_str_invalid
Test creating Version from invalid string raises error.
python-alpm/tests/types/test_version.py:368
Functiontest_version_from_str_valid
Test creating Version from valid string.
python-alpm/tests/types/test_version.py:342
Functiontest_version_init_basic
Test creating Version with basic components.
python-alpm/tests/types/test_version.py:324
Functiontest_version_repr
Test Version repr.
python-alpm/tests/types/test_version.py:409
Functiontest_version_requirement_all_comparisons
Test creating VersionRequirement with all comparison types.
python-alpm/tests/types/test_requirement.py:65
Functiontest_version_requirement_edge_cases
Test VersionRequirement with edge case version strings.
python-alpm/tests/types/test_requirement.py:87
Functiontest_version_requirement_from_str_invalid
Test creating VersionRequirement from invalid string raises error.
python-alpm/tests/types/test_requirement.py:43
Functiontest_version_requirement_from_str_valid
Test creating VersionRequirement from valid string.
python-alpm/tests/types/test_requirement.py:26
Functiontest_version_requirement_init
Test creating VersionRequirement with constructor.
python-alpm/tests/types/test_requirement.py:7
Functiontest_version_requirement_with_complex_version
Test creating VersionRequirement with complex version strings.
python-alpm/tests/types/test_requirement.py:49
Functiontest_version_requirement_with_epoch
Test creating VersionRequirement with epoch in version.
python-alpm/tests/types/test_requirement.py:75
Functiontest_version_requirement_with_pkgrel
Test creating VersionRequirement with package release in version.
python-alpm/tests/types/test_requirement.py:81
Functiontest_version_string_representation
Test Version string representation.
python-alpm/tests/types/test_version.py:402
Functiontest_version_vercmp_equal
Test Version vercmp with equal versions.
python-alpm/tests/types/test_version.py:374
Functiontest_version_vercmp_newer
Test Version vercmp with newer version.
python-alpm/tests/types/test_version.py:381
Functiontest_version_vercmp_older
Test Version vercmp with older version.
python-alpm/tests/types/test_version.py:388
Functiontest_version_vercmp_with_pkgrel
Test Version vercmp with package release.
python-alpm/tests/types/test_version.py:395
Functiontill_line_end
Recognizes all content until the end of line. This function is called after a ` = ` has been recognized using [`delimiter`]. It extends upon winnow's
alpm-srcinfo/src/source_info/parser.rs:70
Methodto_package_relation
Returns the [`PackageRelation`] encoded in this [`InstalledPackage`]. # Examples ``` use std::str::FromStr; use alpm_types::{InstalledPackage, Pack
alpm-types/src/env.rs:605
Functiontrailing_whitespace_after_newline
()
alpm-srcinfo/tests/parser_whitespaces.rs:48
Methodtry_from
Converts a [`SchemaVersion`] to a [`BuildInfoSchema`]. # Errors Returns an error if the [`SchemaVersion`]'s inner [`Version`] does not provide a maj
alpm-buildinfo/src/schema.rs:195
Methodtry_from
Creates a [`PackageInput`] from input directory `path`. This function reads [ALPM-MTREE], [BUILDINFO] and [PKGINFO] files in `path`, collects the pat
alpm-package/src/input.rs:627
Methodtry_from
Creates an [`ExistingAbsoluteDir`] from a [`Path`] reference. Delegates to [`ExistingAbsoluteDir::new`]. # Errors Returns an error if [`ExistingAbs
alpm-package/src/package.rs:143
Methodtry_from
Creates a new [`RepoFilesV1`] from all files and directories in a directory. # Note Delegates to [`alpm_common::relative_files`] to get a sorted lis
alpm-repo-db/src/files/v1.rs:372
Methodtry_from
Tries to create a [`RepoDescFileV2`] from a list of parsed [`Section`]s. # Errors Returns an error if: - any required field is missing, - a section
alpm-repo-db/src/desc/v2.rs:342
Methodtry_from
Tries to create a [`RepoDescFileV1`] from a list of parsed [`Section`]s. # Errors Returns an error if: - any required field is missing, - a section
alpm-repo-db/src/desc/v1.rs:354
Methodtry_from
Converts a [`SchemaVersion`] into a corresponding [`RepoDescSchema`]. # Errors Returns an error if the major version of [`SchemaVersion`] does not c
alpm-repo-db/src/desc/schema.rs:272
Methodtry_from
(value: VersionOrSoname)
python-alpm/src/types/relation.rs:26
Methodtry_from
(arch: RawArchitecture)
python-alpm/src/types/system.rs:175
Methodtry_from
(value: SchemaVersionOrStr)
python-alpm/src/srcinfo/schema.rs:61
Methodtry_from
(value: Override)
python-alpm/src/srcinfo/source_info/v1/package.rs:556
Methodtry_from
Converts a [`SchemaVersion`] to an [`MtreeSchema`]. # Errors Returns an error if the [`SchemaVersion`]'s inner [`Version`] does not provide a major
alpm-mtree/src/schema.rs:185
Methodtry_from
Converts a [`SchemaVersion`] to a [`SourceInfoSchema`]. # Errors Returns an error if the [`SchemaVersion`]'s inner [`Version`] does not provide a ma
alpm-srcinfo/src/schema.rs:164
Methodtry_from
Creates a [`SourceInfoV1`] from a [`BridgeOutput`]. See errors and documentation in [`SourceInfoV1::from_pkgbuild`]
alpm-srcinfo/src/pkgbuild_bridge/mod.rs:26
Methodtry_from
Creates a new [`TarballReader`] from a [`Path`]. # Errors Returns an error if - the file at `path` cannot be opened for reading, - the file extensi
alpm-compress/src/tarball/reader.rs:95
Methodtry_from
Converts a [`CompressionAlgorithmFileExtension`] into a [`DecompressionSettings`].
alpm-compress/src/decompression/settings.rs:28
Methodtry_from
Creates a new [`DbFilesV1`] from all files and directories in a directory. # Note Delegates to [`alpm_common::relative_files`] to get a sorted list
alpm-db/src/files/v1.rs:658
Methodtry_from
Tries to create a [`DbDescFileV2`] from a list of parsed [`Section`]s. Reuses the parsing logic from [`DbDescFileV1`] for all common fields, and adds
alpm-db/src/desc/v2.rs:303
Methodtry_from
Tries to create a [`DbDescFileV1`] from a list of parsed [`Section`]s. # Errors Returns an error if: - any required field is missing, - a section a
alpm-db/src/desc/v1.rs:327
Methodtry_from
Converts a [`SchemaVersion`] into a corresponding [`DbDescSchema`]. # Errors Returns an error if the major version of `SchemaVersion` does not corre
alpm-db/src/desc/schema.rs:197
Methodtry_from
(contents: &'a str)
alpm-parsers/src/custom_ini/de.rs:149
Methodtry_from
Creates an [`ExtraData`] from a vector of [`ExtraDataEntry`]. ## Errors Returns an error in the following cases: - if the `value` does not contain
alpm-types/src/pkg.rs:269
Methodtry_from
Creates a [`CompressionAlgorithmFileExtension`] from a [`Path`] by extracting the file extension. # Errors Returns an error if the file extension do
alpm-types/src/compression.rs:110
Methodtry_from
Tries to convert a vector of [`Architecture`] into an [`Architectures`]. # Errors The conversion fails if the input vector contains [`Architecture::
alpm-types/src/system.rs:455
Methodtry_from
Creates a [`PackageFileName`] from a [`Path`] reference. The file name in `value` is extracted and, if valid is turned into a string slice. The creat
alpm-types/src/package/file_name.rs:509
Methodtry_from
Creates a [`MetadataFileName`] from [`String`]. # Errors Returns an error if `s` does not equal the string representation of a [`MetadataFileName`]
alpm-types/src/package/contents.rs:148
Methodtry_from
Creates a [`MinimalVersion`] from a [`Version`]. # Errors Returns an error if `value.pkgrel` is [`None`].
alpm-types/src/version/pkg_minimal.rs:264
Methodtry_from
Creates a [`FullVersion`] from a [`Version`]. # Errors Returns an error if `value.pkgrel` is [`None`].
alpm-types/src/version/pkg_full.rs:292
Methodtry_from
Converts a [`SchemaVersion`] to a [`PackageInfoSchema`]. # Errors Returns an error if the [`SchemaVersion`]'s inner [`Version`] does not provide a m
alpm-pkginfo/src/schema.rs:213
Methodtry_from_parts
( mut paths: Vec<PathBuf>, mut backup: Vec<BackupEntry>, )
alpm-db/src/files/v1.rs:407
Functionundefined_architecture_base_fails
()
alpm-lint/tests/lint_rule_tests/source_info/undefined_architecture.rs:45
Functionundefined_architecture_base_passes
()
alpm-lint/tests/lint_rule_tests/source_info/undefined_architecture.rs:15
Functionundefined_architecture_package_fails
()
alpm-lint/tests/lint_rule_tests/source_info/undefined_architecture.rs:98
Functionundefined_architecture_package_override_fails
()
alpm-lint/tests/lint_rule_tests/source_info/undefined_architecture.rs:122
Functionundefined_architecture_package_passes
()
alpm-lint/tests/lint_rule_tests/source_info/undefined_architecture.rs:70
Functionunicode_char
Parse and decode a unicode char that's encoded as octal triplets. For example, 🌠 translates to `\360\237\214\240`, which is equivalent to `0xf0 0x9f
alpm-mtree/src/path_decoder.rs:91
Functionunknown_architecture_fails
( #[case] value: &str, #[case] suggestion: Option<&str>, )
alpm-lint/tests/lint_rule_tests/source_info/unknown_architecture.rs:35
Functionunknown_architecture_passes
()
alpm-lint/tests/lint_rule_tests/source_info/unknown_architecture.rs:16
Functionunsafe_checksum_fails
()
alpm-lint/tests/lint_rule_tests/source_info/unsafe_checksum.rs:34
Functionunsafe_checksum_passes
()
alpm-lint/tests/lint_rule_tests/source_info/unsafe_checksum.rs:19
Functionunset_properties
Parse all properties that follow an `/unset` command. / E.g. `/unset uid gid` ↑ ↑ This part
alpm-mtree/src/parser.rs:315
Functionunset_property
Parse a single `/unset` property.
alpm-mtree/src/parser.rs:146
Methodurl
(&self)
python-alpm/src/types/url.rs:46
Methodurl
(&self)
python-alpm/src/srcinfo/source_info/v1/merged.rs:79
Functionv1_stdin
()
alpm-repo-db/tests/integration.rs:177
Functionv1_stdin
()
alpm-db/tests/desc_cli.rs:173
Functionv2_file
()
alpm-repo-db/tests/integration.rs:197
Functionv2_file
()
alpm-db/tests/desc_cli.rs:193
Functionv2_stdin
()
alpm-repo-db/tests/integration.rs:187
Functionv2_stdin
()
alpm-db/tests/desc_cli.rs:183
Functionvalid_buildinfov1
()
alpm-buildinfo/src/build_info/v1.rs:192
← previousnext →1,701–1,800 of 1,873, ranked by callers