文件操作 - test-unit.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/gems/3.2.0/gems/test-unit-3.5.7/lib/test-unit.rb
编辑文件内容
# Copyright (C) 2012-2015 Kouhei Sutou <kou@clear-code.com> require "test/unit/warning" module Test module Unit autoload :TestCase, "test/unit/testcase" autoload :AutoRunner, "test/unit/autorunner" end end unless respond_to?(:run_test, true) # experimental. It is for "ruby -rtest-unit -e run_test test/test_*.rb". # Is this API OK or dirty? def run_test self.class.send(:undef_method, :run_test) require "test/unit" end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件