加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
NAME
    Test::XML::Element - Test the properties a single XML element in
    isolation.

VERSION
    0.01

SYNOPSIS
        use Test::XML::Element tests => 4;
        element_is('<foobar />', "foobar")
        has_attribute('<foobar color="red" />', 'color');
        attribute_has_value('<foobar color="red">', color => 'red');

DESCRIPTION
    This module allows you to test the properties of a single XML element on
    it's own, which may be useful if your module does XML generation.

TESTS
  element_is $element, $name, [$message]
    Test that an element is of the correct type.

  has_attribute $element, $attribute, [$message]
    Check that an element has a certain attribute

  attribute_has_value $element, $attribute, $value, [$message]
    Check that an attribute has a certain attribute, and it is set to a
    certain value.

AUTHOR
    Oliver Charles "oliver.g.charles@googlemail.com"

COPYRIGHT
    Copyright 2009 Oliver Charles

    This library is free software; you can redistribute it and/or modify it
    under the same terms as Perl itself.

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化